          }
          else
          {
-@@ -148,6 +156,12 @@ public class NetworkManager extends SimpleChannelInboundHandler < Packet<? >>
+@@ -148,6 +155,10 @@ public class NetworkManager extends SimpleChannelInboundHandler < Packet<? >>
      {
          if (this.channel.isOpen())
          {
 +			// TODO: Client
-+			PacketInputEvent event = new PacketInputEvent(p_channelRead0_2_);
-+			WurstClient.INSTANCE.events.fire(event);
-+			if(event.isCancelled())
++			if(!EventFactory.onReceivePacket(p_channelRead0_2_))
 +				return;
 +			
              try

 import io.netty.channel.epoll.Epoll;
 import io.netty.channel.epoll.EpollEventLoopGroup;
 import io.netty.channel.epoll.EpollSocketChannel;
@@ -27,24 +34,14 @@ import io.netty.handler.timeout.TimeoutException;
 import io.netty.util.AttributeKey;
 import io.netty.util.concurrent.Future;
 import io.netty.util.concurrent.GenericFutureListener;

From c8e2faeb5afb453b4b2f63b3260669fca9dcaef3 Mon Sep 17 00:00:00 2001
From: Alexander01998 <contact.wurstimperium@gmail.com>
Date: Mon, 6 Aug 2018 19:18:25 +0200
Subject: [PATCH] mod

---
