Fix player disguise no name visible not loading properly
This commit is contained in:
parent
404974732f
commit
76e7151488
@ -368,8 +368,8 @@ public abstract class Disguise {
|
||||
if (isDynamicName()) {
|
||||
String name = getEntity().getCustomName();
|
||||
|
||||
if (name == null) {
|
||||
name = "";
|
||||
if (name == null || name.isEmpty()) {
|
||||
name = isPlayerDisguise() ? "LD_NoName" : "";
|
||||
}
|
||||
|
||||
if (isPlayerDisguise()) {
|
||||
|
@ -307,6 +307,10 @@ public class PlayerDisguise extends TargetedDisguise {
|
||||
name = DisguiseUtilities.getDisplayName(name);
|
||||
}
|
||||
|
||||
if (name.equals("")) {
|
||||
name = "LD_NoName";
|
||||
}
|
||||
|
||||
if (name.equals(playerName)) {
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user