Fixed crash

This commit is contained in:
Sollace 2023-10-09 15:14:28 +01:00
parent f25df41fa5
commit 3f0dfff9e9
No known key found for this signature in database
GPG key ID: E52FACE7B5C773DB

View file

@ -218,6 +218,9 @@ public record Race (Supplier<Composite> compositeSupplier, boolean canCast, Flig
}
public FlightType flightType() {
if (pseudo() == null) {
return physical().flightType();
}
return physical().flightType().or(pseudo().flightType());
}
}