mirror of
https://github.com/TotalFreedomMC/TF-LibsDisguises.git
synced 2025-02-12 03:57:03 +00:00
Fix player disguise no name visible not loading properly
This commit is contained in:
parent
404974732f
commit
76e7151488
2 changed files with 6 additions and 2 deletions
|
@ -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 a new issue