From 05a849a510143e6d802efa982374a7b73c6b3c3d Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Wed, 23 Apr 2014 11:49:24 +1200 Subject: [PATCH] Just use the field name instead of regetting it --- src/me/libraryaddict/disguise/utilities/PacketsManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/me/libraryaddict/disguise/utilities/PacketsManager.java b/src/me/libraryaddict/disguise/utilities/PacketsManager.java index 57635a3c..003bd992 100644 --- a/src/me/libraryaddict/disguise/utilities/PacketsManager.java +++ b/src/me/libraryaddict/disguise/utilities/PacketsManager.java @@ -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); }