From a5eddd4305d7a52867080b702903b5565448bdcc Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Thu, 23 Jan 2014 08:53:34 +1300 Subject: [PATCH] Fixed primed tnt glitching out --- src/me/libraryaddict/disguise/disguisetypes/Disguise.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/me/libraryaddict/disguise/disguisetypes/Disguise.java b/src/me/libraryaddict/disguise/disguisetypes/Disguise.java index 277aa05e..10cced11 100644 --- a/src/me/libraryaddict/disguise/disguisetypes/Disguise.java +++ b/src/me/libraryaddict/disguise/disguisetypes/Disguise.java @@ -186,8 +186,8 @@ public abstract class Disguise { DisguiseAPI.undisguiseToAll(getEntity()); } else { // 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 (refreshDisguise++ % 40 == 0) { + if (getType() == DisguiseType.PRIMED_TNT || getType() == DisguiseType.FIREWORK) {refreshDisguise++; + if (refreshDisguise % 40 == 0) { refreshDisguise = 0; DisguiseUtilities.refreshTrackers(disguise); if (getEntity() instanceof Player && isSelfDisguiseVisible()) {