diff options
Diffstat (limited to 'nms-patches/NetworkManager.patch')
-rw-r--r-- | nms-patches/NetworkManager.patch | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/nms-patches/NetworkManager.patch b/nms-patches/NetworkManager.patch index b41fb161..f4de26f0 100644 --- a/nms-patches/NetworkManager.patch +++ b/nms-patches/NetworkManager.patch @@ -1,6 +1,15 @@ --- a/net/minecraft/server/NetworkManager.java +++ b/net/minecraft/server/NetworkManager.java -@@ -231,7 +231,7 @@ +@@ -113,7 +113,7 @@ + protected void a(ChannelHandlerContext channelhandlercontext, Packet<?> packet) throws Exception { + if (this.channel.isOpen()) { + try { +- packet.a(this.m); ++ ((Packet) packet).a(this.m); // CraftBukkit - decompile error + } catch (CancelledPacketHandleException cancelledpackethandleexception) { + ; + } +@@ -232,7 +232,7 @@ public void close(IChatBaseComponent ichatbasecomponent) { if (this.channel.isOpen()) { @@ -9,7 +18,7 @@ this.n = ichatbasecomponent; } -@@ -308,7 +308,7 @@ +@@ -309,7 +309,7 @@ } } |