From 9a0b30234d04ae7e08824f33650c972523bacd1f Mon Sep 17 00:00:00 2001 From: Dawson Hessler Date: Tue, 8 Sep 2020 14:25:11 -0400 Subject: [PATCH] Adding back the thread processing to Kauri removed from previous debugging --- .../dev/brighten/anticheat/listeners/PacketListener.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Impl/src/main/java/dev/brighten/anticheat/listeners/PacketListener.java b/Impl/src/main/java/dev/brighten/anticheat/listeners/PacketListener.java index 99edaf7a5..af00725bb 100644 --- a/Impl/src/main/java/dev/brighten/anticheat/listeners/PacketListener.java +++ b/Impl/src/main/java/dev/brighten/anticheat/listeners/PacketListener.java @@ -35,8 +35,8 @@ public void onEvent(PacketReceiveEvent event) { if(data == null || data.checkManager == null) return; - Kauri.INSTANCE.packetProcessor.processClient(event, - data, event.getPacket(), event.getType(), event.getTimeStamp()); + data.getThread().execute(() -> Kauri.INSTANCE.packetProcessor.processClient(event, + data, event.getPacket(), event.getType(), event.getTimeStamp())); switch(event.getType()) { case Packet.Client.USE_ENTITY: { @@ -73,8 +73,8 @@ public void onEvent(PacketSendEvent event) { if(data == null || data.checkManager == null) return; - Kauri.INSTANCE.packetProcessor.processServer(event, - data, event.getPacket(), event.getType(), event.getTimeStamp()); + data.getThread().execute(() -> Kauri.INSTANCE.packetProcessor.processServer(event, + data, event.getPacket(), event.getType(), event.getTimeStamp())); switch(event.getType()) { case Packet.Server.REL_LOOK: