May as well make firework be refreshed to try combat mojangs brilliant lag idea
This commit is contained in:
parent
82e86f6669
commit
6420a989a9
@ -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;
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user