mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-18 08:36:13 +01:00
21 lines
743 B
Diff
21 lines
743 B
Diff
--- a/net/minecraft/server/NetworkManager.java
|
|
+++ b/net/minecraft/server/NetworkManager.java
|
|
@@ -129,7 +129,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) {
|
|
@@ -244,7 +244,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.n = ichatbasecomponent;
|
|
}
|
|
|