Reverse check, fixes self disguises.

This commit is contained in:
libraryaddict 2019-02-04 17:14:04 +13:00
parent 0a2b41d99d
commit 10bb5511a6

View File

@ -35,7 +35,7 @@ public class PacketHandlerMetadata implements IPacketHandler {
packets.clear();
if (DisguiseConfig.isMetadataPacketsEnabled() && packetsHandler.isCancelMeta(disguise, observer)) {
if (DisguiseConfig.isMetadataPacketsEnabled() && !packetsHandler.isCancelMeta(disguise, observer)) {
List<WrappedWatchableObject> watchableObjects = disguise.getWatcher()
.convert(sentPacket.getWatchableCollectionModifier().read(0));