Fixed self disguises and player disguise falling out of sync

This commit is contained in:
libraryaddict 2014-04-09 22:04:18 +12:00
parent 15c7e79e20
commit 28f70c1963

View File

@ -324,6 +324,9 @@ public class DisguiseUtilities {
} }
if (DisguiseUtilities.isDisguiseInUse(disguise)) { if (DisguiseUtilities.isDisguiseInUse(disguise)) {
DisguiseUtilities.refreshTrackers((TargetedDisguise) disguise); DisguiseUtilities.refreshTrackers((TargetedDisguise) disguise);
if (disguise.getEntity() instanceof Player && disguise.isSelfDisguiseVisible()) {
DisguiseUtilities.sendSelfDisguise((Player) disguise.getEntity());
}
} }
} }
} }