This commit is contained in:
shenjack 2024-08-19 13:29:29 +08:00
parent 7e0bff5607
commit 2ea2082064
Signed by: shenjack
GPG Key ID: 7B1134A979775551
2 changed files with 2 additions and 4 deletions

@ -1 +1 @@
Subproject commit f113523671ae3f3c5b0096bc01da0af924205315
Subproject commit f703b9dde1d6f509febe0cf05083135f2b1f1151

View File

@ -389,8 +389,7 @@ pub fn py_assert_ship(path: String) -> bool {
if e.name().as_ref() == b"Ship" {
// 再验证一下 version, liftedOff, touchingGround
let mut founds = (false, false, false);
for attr in e.attributes() {
if let Ok(attr) = attr {
for attr in e.attributes().flatten() {
match attr.key.as_ref() {
b"version" => {
founds.0 = true;
@ -402,7 +401,6 @@ pub fn py_assert_ship(path: String) -> bool {
founds.2 = true;
}
_ => (),
}
}
}
if !(founds.0 && founds.1 && founds.2) {