mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 03:43:40 +01:00
b3a8254758
By: md_5 <git@md-5.net>
20 lines
762 B
Diff
20 lines
762 B
Diff
--- a/net/minecraft/network/NetworkManager.java
|
|
+++ b/net/minecraft/network/NetworkManager.java
|
|
@@ -156,7 +156,7 @@
|
|
}
|
|
|
|
private static <T extends PacketListener> void a(Packet<T> packet, PacketListener packetlistener) {
|
|
- packet.a(packetlistener);
|
|
+ packet.a((T) packetlistener); // CraftBukkit - decompile error
|
|
}
|
|
|
|
public void setPacketListener(PacketListener packetlistener) {
|
|
@@ -268,7 +268,7 @@
|
|
|
|
public void close(IChatBaseComponent ichatbasecomponent) {
|
|
if (this.channel.isOpen()) {
|
|
- this.channel.close().awaitUninterruptibly();
|
|
+ this.channel.close(); // We can't wait as this may be called from an event loop.
|
|
this.disconnectedReason = ichatbasecomponent;
|
|
}
|
|
|