From f5f232241a5e7ff59898ba9fc2ebc1df55f51f8c Mon Sep 17 00:00:00 2001 From: Sollace Date: Tue, 13 Aug 2019 09:17:02 +0200 Subject: [PATCH] Fixed integer overflow --- .../java/com/minelittlepony/unicopia/spell/SpellDisguise.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/minelittlepony/unicopia/spell/SpellDisguise.java b/src/main/java/com/minelittlepony/unicopia/spell/SpellDisguise.java index bc0379a1..e67f40d6 100644 --- a/src/main/java/com/minelittlepony/unicopia/spell/SpellDisguise.java +++ b/src/main/java/com/minelittlepony/unicopia/spell/SpellDisguise.java @@ -395,7 +395,7 @@ public class SpellDisguise extends AbstractSpell implements IAttachedEffect, ISu if (player.isClientPlayer() && UClient.instance().getViewMode() == 0) { entity.setInvisible(true); - entity.posY = -Integer.MIN_VALUE; + entity.posY = Integer.MIN_VALUE; } return player.getPlayerSpecies() == Race.CHANGELING;