diff --git a/src/main/java/com/comphenix/protocol/injector/netty/channel/NettyChannelInjector.java b/src/main/java/com/comphenix/protocol/injector/netty/channel/NettyChannelInjector.java index 125bb00e..19ae3238 100644 --- a/src/main/java/com/comphenix/protocol/injector/netty/channel/NettyChannelInjector.java +++ b/src/main/java/com/comphenix/protocol/injector/netty/channel/NettyChannelInjector.java @@ -101,7 +101,7 @@ public class NettyChannelInjector implements Injector { // packet marking private final Map savedMarkers = new WeakHashMap<>(16, 0.9f); - private final Set skippedPackets = Collections.synchronizedSet(new HashSet<>()); + private final Set skippedPackets = ConcurrentHashMap.newKeySet(); protected final ThreadLocal processedPackets = ThreadLocal.withInitial(() -> Boolean.FALSE); // status of this injector