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:
@@ -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) {
|
||||||
|
Reference in New Issue
Block a user