Don't send packets unless disguise is in use

This commit is contained in:
libraryaddict 2021-01-15 23:41:35 +13:00
parent a286773c04
commit 350a3aa9b5

View File

@ -149,6 +149,10 @@ public abstract class Disguise {
public abstract double getHeight(); public abstract double getHeight();
protected void sendArmorStands(String[] oldName) { protected void sendArmorStands(String[] oldName) {
if (!isDisguiseInUse()) {
return;
}
ArrayList<PacketContainer> packets = DisguiseUtilities.getNamePackets(this, oldName); ArrayList<PacketContainer> packets = DisguiseUtilities.getNamePackets(this, oldName);
try { try {