Fix setName not working correctly in a few cases
This commit is contained in:
parent
3a2e7602fb
commit
accbba2d32
@ -269,6 +269,11 @@ public class PlayerDisguise extends TargetedDisguise {
|
||||
if (stopDisguise()) {
|
||||
playerName = name;
|
||||
|
||||
if (gameProfile != null) {
|
||||
gameProfile = ReflectionManager
|
||||
.getGameProfileWithThisSkin(uuid, getProfileName(), getGameProfile());
|
||||
}
|
||||
|
||||
if (!startDisguise()) {
|
||||
throw new IllegalStateException("Unable to restart disguise");
|
||||
}
|
||||
@ -277,6 +282,10 @@ public class PlayerDisguise extends TargetedDisguise {
|
||||
}
|
||||
} else {
|
||||
playerName = name;
|
||||
|
||||
if (gameProfile != null) {
|
||||
gameProfile = ReflectionManager.getGameProfileWithThisSkin(uuid, getProfileName(), getGameProfile());
|
||||
}
|
||||
}
|
||||
|
||||
// Scare monger for the pirates of a certain site. Don't start messages until 14 days has passed!
|
||||
|
Loading…
Reference in New Issue
Block a user