Fixed integer overflow

This commit is contained in:
Sollace 2019-08-13 09:17:02 +02:00
parent e5cb2df0ce
commit f5f232241a

View file

@ -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;