mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-30 16:28:00 +01:00
Fixed error rendering passengers in the HDSkins preview screen #119
This commit is contained in:
parent
499df238d0
commit
5ad9b46430
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ abstract class MixinEntity implements EntityDuck {
|
||||||
@Override
|
@Override
|
||||||
public boolean isLavaAffine() {
|
public boolean isLavaAffine() {
|
||||||
Entity self = (Entity)(Object)this;
|
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)
|
@Inject(method = "isFireImmune", at = @At("HEAD"), cancellable = true)
|
||||||
|
|
Loading…
Reference in a new issue