Only resend the player disguise if there is changes that will be noticed.

This commit is contained in:
libraryaddict
2014-07-03 21:30:09 +12:00
parent 8410904f94
commit 1df5f6723e
2 changed files with 4 additions and 2 deletions

View File

@@ -343,7 +343,9 @@ public class DisguiseUtilities {
if (remove) {
getAddedByPlugins().remove(disguise.getName().toLowerCase());
}
if (DisguiseAPI.isDisguiseInUse(disguise)) {
if (DisguiseAPI.isDisguiseInUse(disguise)
&& (!gameProfile.getName().equals(disguise.getName()) || !gameProfile.getProperties().isEmpty())) {
// TODO Resend for UUID? Might need to in the future.
DisguiseUtilities.refreshTrackers(disguise);
}
}