Don't refresh disguise if they can't show a name anyways

This commit is contained in:
libraryaddict 2020-03-22 19:20:24 +13:00
parent 45ecc68a2a
commit f5090cc288
No known key found for this signature in database
GPG Key ID: 052E4FBCD257AEA4

View File

@ -199,7 +199,7 @@ public class PlayerDisguise extends TargetedDisguise {
name = name.substring(0, 16);
}
if (isDisguiseInUse()) {
if (isDisguiseInUse() && isShowName()) {
if (stopDisguise()) {
playerName = name;