mirror of
https://github.com/TotalFreedomMC/TF-LibsDisguises.git
synced 2025-02-11 19:50:30 +00:00
Just use the field name instead of regetting it
This commit is contained in:
parent
62debf30c0
commit
05a849a510
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue