From 716281853cfc709f982d3f10636cb193ed91891b Mon Sep 17 00:00:00 2001 From: Sollace Date: Mon, 9 Oct 2023 15:14:28 +0100 Subject: [PATCH] Fixed crash --- src/main/java/com/minelittlepony/unicopia/Race.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/com/minelittlepony/unicopia/Race.java b/src/main/java/com/minelittlepony/unicopia/Race.java index 042acc19..15aa8304 100644 --- a/src/main/java/com/minelittlepony/unicopia/Race.java +++ b/src/main/java/com/minelittlepony/unicopia/Race.java @@ -217,6 +217,9 @@ public record Race (Supplier compositeSupplier, boolean canCast, Flig } public FlightType flightType() { + if (pseudo() == null) { + return physical().flightType(); + } return physical().flightType().or(pseudo().flightType()); } }