mirror of
https://github.com/TotalFreedomMC/TF-LibsDisguises.git
synced 2025-02-11 11:40:29 +00:00
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:
parent
0c4262a6ff
commit
2c78c012c0
1 changed files with 4 additions and 0 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue