From 350a3aa9b56bb359f6698d754fc6a8c02e9196b6 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Fri, 15 Jan 2021 23:41:35 +1300 Subject: [PATCH] Don't send packets unless disguise is in use --- .../me/libraryaddict/disguise/disguisetypes/Disguise.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/me/libraryaddict/disguise/disguisetypes/Disguise.java b/src/main/java/me/libraryaddict/disguise/disguisetypes/Disguise.java index a6dde5d2..df0ab387 100644 --- a/src/main/java/me/libraryaddict/disguise/disguisetypes/Disguise.java +++ b/src/main/java/me/libraryaddict/disguise/disguisetypes/Disguise.java @@ -149,6 +149,10 @@ public abstract class Disguise { public abstract double getHeight(); protected void sendArmorStands(String[] oldName) { + if (!isDisguiseInUse()) { + return; + } + ArrayList packets = DisguiseUtilities.getNamePackets(this, oldName); try {