mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2024-12-12 15:07:22 +01:00
Another quick fix
This commit is contained in:
parent
ba036eae4d
commit
77922f06e4
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user