Just use the field name instead of regetting it

This commit is contained in:
libraryaddict 2014-04-23 11:49:24 +12:00
parent 62debf30c0
commit 05a849a510

View File

@ -206,7 +206,7 @@ public class PacketsManager {
if (!DisguiseUtilities.hasGameProfile(name)) {
removeName = !DisguiseUtilities.getAddedByPlugins().contains(name);
}
gameProfile = DisguiseUtilities.getProfileFromMojang(((PlayerDisguise) disguise).getName());
gameProfile = DisguiseUtilities.getProfileFromMojang(name);
if (removeName) {
DisguiseUtilities.getAddedByPlugins().remove(name);
}