mirror of
https://github.com/TotalFreedomMC/TF-LibsDisguises.git
synced 2025-02-05 06:12:48 +00:00
Fix setName not working correctly in a few cases
This commit is contained in:
parent
b696ea9dcf
commit
4f049ca1fa
1 changed files with 9 additions and 0 deletions
|
@ -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 a new issue