From f5090cc288056e891effcea3a4007d7f65a3b3fd Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Sun, 22 Mar 2020 19:20:24 +1300 Subject: [PATCH] Don't refresh disguise if they can't show a name anyways --- .../me/libraryaddict/disguise/disguisetypes/PlayerDisguise.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/me/libraryaddict/disguise/disguisetypes/PlayerDisguise.java b/src/main/java/me/libraryaddict/disguise/disguisetypes/PlayerDisguise.java index 0f35bef1..199193c4 100644 --- a/src/main/java/me/libraryaddict/disguise/disguisetypes/PlayerDisguise.java +++ b/src/main/java/me/libraryaddict/disguise/disguisetypes/PlayerDisguise.java @@ -199,7 +199,7 @@ public class PlayerDisguise extends TargetedDisguise { name = name.substring(0, 16); } - if (isDisguiseInUse()) { + if (isDisguiseInUse() && isShowName()) { if (stopDisguise()) { playerName = name;