Fixed primed tnt glitching out

This commit is contained in:
libraryaddict 2014-01-23 08:53:34 +13:00
parent 050c39d807
commit a5eddd4305

View File

@ -186,8 +186,8 @@ public abstract class Disguise {
DisguiseAPI.undisguiseToAll(getEntity()); DisguiseAPI.undisguiseToAll(getEntity());
} else { } else {
// If the disguise type is tnt, we need to resend the entity packet else it will turn invisible // If the disguise type is tnt, we need to resend the entity packet else it will turn invisible
if (getType() == DisguiseType.PRIMED_TNT || getType() == DisguiseType.FIREWORK) { if (getType() == DisguiseType.PRIMED_TNT || getType() == DisguiseType.FIREWORK) {refreshDisguise++;
if (refreshDisguise++ % 40 == 0) { if (refreshDisguise % 40 == 0) {
refreshDisguise = 0; refreshDisguise = 0;
DisguiseUtilities.refreshTrackers(disguise); DisguiseUtilities.refreshTrackers(disguise);
if (getEntity() instanceof Player && isSelfDisguiseVisible()) { if (getEntity() instanceof Player && isSelfDisguiseVisible()) {