mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2024-12-14 15:26:54 +01:00
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()) {
|
if (stopDisguise()) {
|
||||||
playerName = name;
|
playerName = name;
|
||||||
|
|
||||||
|
if (gameProfile != null) {
|
||||||
|
gameProfile = ReflectionManager
|
||||||
|
.getGameProfileWithThisSkin(uuid, getProfileName(), getGameProfile());
|
||||||
|
}
|
||||||
|
|
||||||
if (!startDisguise()) {
|
if (!startDisguise()) {
|
||||||
throw new IllegalStateException("Unable to restart disguise");
|
throw new IllegalStateException("Unable to restart disguise");
|
||||||
}
|
}
|
||||||
@ -277,6 +282,10 @@ public class PlayerDisguise extends TargetedDisguise {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
playerName = name;
|
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!
|
// 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