May as well make firework be refreshed to try combat mojangs brilliant lag idea

This commit is contained in:
libraryaddict 2013-12-03 03:00:44 +13:00
parent 82e86f6669
commit 6420a989a9
2 changed files with 3 additions and 3 deletions

View File

@ -186,7 +186,7 @@ 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) { if (getType() == DisguiseType.PRIMED_TNT || getType() == DisguiseType.FIREWORK) {
i++; i++;
if (i % 40 == 0) { if (i % 40 == 0) {
i = 0; i = 0;

View File

@ -75,9 +75,9 @@ public class DisguiseUtilities {
d.unsetViewDisguise(name); d.unsetViewDisguise(name);
} }
} else { } else {
for (String playername : new ArrayList<String>(d.getObservers())) { for (String playername : d.getObservers()) {
if (!disguise.getObservers().contains(playername)) { if (!disguise.getObservers().contains(playername)) {
d.unsetViewDisguise(playername); d.silentlyUnsetViewDisguise(playername);
} }
} }
} }