From 5ad9b46430d5e46f4285043c15571e0fbb309b72 Mon Sep 17 00:00:00 2001 From: Sollace Date: Mon, 29 May 2023 10:14:57 +0100 Subject: [PATCH] Fixed error rendering passengers in the HDSkins preview screen #119 --- .../java/com/minelittlepony/unicopia/mixin/MixinEntity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)