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()) {
|
if (isDynamicName()) {
|
||||||
String name = getEntity().getCustomName();
|
String name = getEntity().getCustomName();
|
||||||
|
|
||||||
if (name == null) {
|
if (name == null || name.isEmpty()) {
|
||||||
name = "";
|
name = isPlayerDisguise() ? "LD_NoName" : "";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isPlayerDisguise()) {
|
if (isPlayerDisguise()) {
|
||||||
|
@ -307,6 +307,10 @@ public class PlayerDisguise extends TargetedDisguise {
|
|||||||
name = DisguiseUtilities.getDisplayName(name);
|
name = DisguiseUtilities.getDisplayName(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (name.equals("")) {
|
||||||
|
name = "LD_NoName";
|
||||||
|
}
|
||||||
|
|
||||||
if (name.equals(playerName)) {
|
if (name.equals(playerName)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user