Set custom name visible to false by default on players disguised

This commit is contained in:
libraryaddict 2020-04-19 18:38:59 +12:00
parent b527b3d166
commit a7014ec9e1
No known key found for this signature in database
GPG Key ID: 052E4FBCD257AEA4

View File

@ -903,6 +903,7 @@ public abstract class Disguise {
if (getEntity() instanceof Player && !getWatcher().hasCustomName()) { if (getEntity() instanceof Player && !getWatcher().hasCustomName()) {
getWatcher().setCustomName(""); getWatcher().setCustomName("");
getWatcher().setCustomNameVisible(false);
} }
// If a horse is disguised as a horse, it should obey parent no gravity rule // If a horse is disguised as a horse, it should obey parent no gravity rule