diff --git a/src/main/java/me/libraryaddict/disguise/utilities/packets/packethandlers/PacketHandlerMetadata.java b/src/main/java/me/libraryaddict/disguise/utilities/packets/packethandlers/PacketHandlerMetadata.java index 3184f619..c9972a23 100644 --- a/src/main/java/me/libraryaddict/disguise/utilities/packets/packethandlers/PacketHandlerMetadata.java +++ b/src/main/java/me/libraryaddict/disguise/utilities/packets/packethandlers/PacketHandlerMetadata.java @@ -30,17 +30,18 @@ public class PacketHandlerMetadata implements IPacketHandler { } @Override - public void handle(Disguise disguise, PacketContainer sentPacket, LibsPackets packets, Player observer, - Entity entity) { - + public void handle(Disguise disguise, PacketContainer sentPacket, LibsPackets packets, Player observer, Entity entity) { packets.clear(); if (!DisguiseConfig.isMetaPacketsEnabled()) { return; } - List watchableObjects = disguise.getWatcher() - .convert(observer, sentPacket.getWatchableCollectionModifier().read(0)); + List watchableObjects = disguise.getWatcher().convert(observer, sentPacket.getWatchableCollectionModifier().read(0)); + + if (watchableObjects.isEmpty()) { + return; + } PacketContainer metaPacket = new PacketContainer(PacketType.Play.Server.ENTITY_METADATA);