Skip to content

Commit

Permalink
Adding back the thread processing to Kauri removed from previous debu…
Browse files Browse the repository at this point in the history
…gging
  • Loading branch information
funkemunky committed Sep 8, 2020
1 parent bb4fa8f commit 9a0b302
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 9a0b302

Please sign in to comment.