mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2024-12-16 15:38:14 +01:00
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());
|
||||
} else {
|
||||
// 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++;
|
||||
if (i % 40 == 0) {
|
||||
i = 0;
|
||||
|
@ -75,9 +75,9 @@ public class DisguiseUtilities {
|
||||
d.unsetViewDisguise(name);
|
||||
}
|
||||
} else {
|
||||
for (String playername : new ArrayList<String>(d.getObservers())) {
|
||||
for (String playername : d.getObservers()) {
|
||||
if (!disguise.getObservers().contains(playername)) {
|
||||
d.unsetViewDisguise(playername);
|
||||
d.silentlyUnsetViewDisguise(playername);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user