Fixed primed tnt glitching out
This commit is contained in:
parent
050c39d807
commit
a5eddd4305
@ -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()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user