Players disguised will by default, have an empty custom name on disguise to conceal if they have a custom name on the player entity.

This commit is contained in:
libraryaddict 2019-09-05 18:58:48 +12:00
parent 0c4262a6ff
commit 2c78c012c0

View File

@ -711,6 +711,10 @@ public abstract class Disguise {
} }
getWatcher().setNoGravity(true); getWatcher().setNoGravity(true);
if (getEntity() instanceof Player && !getWatcher().hasCustomName()) {
getWatcher().setCustomName("");
}
} }
public Disguise setVelocitySent(boolean sendVelocity) { public Disguise setVelocitySent(boolean sendVelocity) {