mirror of
https://github.com/TotalFreedomMC/TF-LibsDisguises.git
synced 2025-02-12 12:00:59 +00:00
Call setName() instead of setting name directly
This commit is contained in:
parent
a63e617b0a
commit
740fac23ba
1 changed files with 2 additions and 2 deletions
|
@ -80,6 +80,7 @@ public class PlayerDisguise extends TargetedDisguise {
|
||||||
createDisguise();
|
createDisguise();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Deprecated
|
||||||
public DisguiseUtilities.DScoreTeam getScoreboardName() {
|
public DisguiseUtilities.DScoreTeam getScoreboardName() {
|
||||||
if (getName().length() <= 32 ? !DisguiseConfig.isScoreboardDisguiseNames() :
|
if (getName().length() <= 32 ? !DisguiseConfig.isScoreboardDisguiseNames() :
|
||||||
!DisguiseConfig.isExtendedDisguiseNames()) {
|
!DisguiseConfig.isExtendedDisguiseNames()) {
|
||||||
|
@ -162,8 +163,6 @@ public class PlayerDisguise extends TargetedDisguise {
|
||||||
public PlayerDisguise clone() {
|
public PlayerDisguise clone() {
|
||||||
PlayerDisguise disguise = new PlayerDisguise();
|
PlayerDisguise disguise = new PlayerDisguise();
|
||||||
|
|
||||||
disguise.playerName = getName();
|
|
||||||
|
|
||||||
if (currentLookup == null && gameProfile != null) {
|
if (currentLookup == null && gameProfile != null) {
|
||||||
disguise.skinToUse = getSkin();
|
disguise.skinToUse = getSkin();
|
||||||
disguise.gameProfile = ReflectionManager
|
disguise.gameProfile = ReflectionManager
|
||||||
|
@ -172,6 +171,7 @@ public class PlayerDisguise extends TargetedDisguise {
|
||||||
disguise.setSkin(getSkin());
|
disguise.setSkin(getSkin());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
disguise.setName(getName());
|
||||||
disguise.setNameVisible(isNameVisible());
|
disguise.setNameVisible(isNameVisible());
|
||||||
disguise.setDynamicName(isDynamicName());
|
disguise.setDynamicName(isDynamicName());
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue