Another quick fix

This commit is contained in:
libraryaddict 2024-10-06 09:00:22 +13:00
parent ba036eae4d
commit 77922f06e4

View File

@ -285,7 +285,11 @@ public class PlayerDisguise extends TargetedDisguise {
public void setName(String name) {
if (getName().equals("<Inherit>") && getEntity() != null) {
name = getEntity().getCustomName();
if (getEntity() instanceof Player) {
name = getEntity().getName();
} else {
name = getEntity().getCustomName();
}
if (name == null || name.isEmpty()) {
name = getEntity().getType().name();