Revert "" to "LD_NoName"
This commit is contained in:
@@ -105,7 +105,7 @@ public class DisguiseUtilities {
|
||||
}
|
||||
|
||||
public void handleTeam(Scoreboard board, boolean nameVisible) {
|
||||
nameVisible = !getPlayer().equals("LD_NoName") && !DisguiseConfig.isArmorstandsName() && nameVisible;
|
||||
nameVisible = !DisguiseConfig.isArmorstandsName() && nameVisible;
|
||||
Team team = board.getTeam(getTeamName());
|
||||
|
||||
if (team == null) {
|
||||
@@ -1775,9 +1775,9 @@ public class DisguiseUtilities {
|
||||
if (mainTeam == null) {
|
||||
mainTeam = scoreboard.registerNewTeam("LD_NoName");
|
||||
mainTeam.setOption(Option.NAME_TAG_VISIBILITY, OptionStatus.NEVER);
|
||||
mainTeam.addEntry("LD_NoName");
|
||||
} else if (!mainTeam.hasEntry("LD_NoName")) {
|
||||
mainTeam.addEntry("LD_NoName");
|
||||
mainTeam.addEntry("");
|
||||
} else if (!mainTeam.hasEntry("")) {
|
||||
mainTeam.addEntry("");
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -163,11 +163,10 @@ public class PacketHandlerSpawn implements IPacketHandler {
|
||||
mods.write(5, pitch);
|
||||
} else if (disguise.getType().isPlayer()) {
|
||||
PlayerDisguise playerDisguise = (PlayerDisguise) disguise;
|
||||
boolean visibleOrNewCompat = playerDisguise.isNameVisible() && DisguiseConfig.isScoreboardNames();
|
||||
boolean visibleOrNewCompat = playerDisguise.isNameVisible() || DisguiseConfig.isScoreboardNames();
|
||||
|
||||
WrappedGameProfile spawnProfile = visibleOrNewCompat ? playerDisguise.getGameProfile() : ReflectionManager
|
||||
.getGameProfileWithThisSkin(UUID.randomUUID(), playerDisguise.isNameVisible() ? playerDisguise.getProfileName() : "LD_NoName",
|
||||
playerDisguise.getGameProfile());
|
||||
.getGameProfileWithThisSkin(UUID.randomUUID(), playerDisguise.isNameVisible() ? playerDisguise.getName() : "", playerDisguise.getGameProfile());
|
||||
|
||||
int entityId = disguisedEntity.getEntityId();
|
||||
PlayerSkinHandler.PlayerSkin skin;
|
||||
|
Reference in New Issue
Block a user