diff --git a/src/main/java/com/minelittlepony/unicopia/mixin/MixinEntity.java b/src/main/java/com/minelittlepony/unicopia/mixin/MixinEntity.java index d9b180bf..4d31bff6 100644 --- a/src/main/java/com/minelittlepony/unicopia/mixin/MixinEntity.java +++ b/src/main/java/com/minelittlepony/unicopia/mixin/MixinEntity.java @@ -28,7 +28,7 @@ abstract class MixinEntity implements EntityDuck { @Override public boolean isLavaAffine() { Entity self = (Entity)(Object)this; - return self.hasVehicle() && ((LavaAffine)self.getVehicle()).isLavaAffine(); + return self.hasVehicle() && self.getVehicle() instanceof LavaAffine affine && affine.isLavaAffine(); } @Inject(method = "isFireImmune", at = @At("HEAD"), cancellable = true)