1 parent
70d2d0194f
commit
0cc4438abd
1 file changed
+4
@@ -91,6 +91,10 @@ public abstract class Player_scarpetEventsMixin extends LivingEntity
|
|||||||
@ModifyReturnValue(method = "wantsToStopRiding", at = @At("TAIL"))
|
@ModifyReturnValue(method = "wantsToStopRiding", at = @At("TAIL"))
|
||||||
private boolean dontUnmountFromIfPermanentVehicle(boolean original)
|
private boolean dontUnmountFromIfPermanentVehicle(boolean original)
|
||||||
{
|
{
|
||||||
|
if (this.getVehicle() == null) {
|
||||||
|
// may also be called when leaving entity camera in spectator
|
||||||
|
return original;
|
||||||
|
}
|
||||||
return original && !((EntityInterface) this.getVehicle()).isPermanentVehicle();
|
return original && !((EntityInterface) this.getVehicle()).isPermanentVehicle();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user