mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-08 11:24:11 +01:00
f8db65033c
By: md_5 <git@md-5.net>
20 lines
781 B
Diff
20 lines
781 B
Diff
--- a/net/minecraft/network/NetworkManager.java
|
|
+++ b/net/minecraft/network/NetworkManager.java
|
|
@@ -164,7 +164,7 @@
|
|
}
|
|
|
|
private static <T extends PacketListener> void genericsFtw(Packet<T> packet, PacketListener packetlistener) {
|
|
- packet.handle(packetlistener);
|
|
+ packet.handle((T) packetlistener); // CraftBukkit - decompile error
|
|
}
|
|
|
|
public void setListener(PacketListener packetlistener) {
|
|
@@ -289,7 +289,7 @@
|
|
|
|
public void disconnect(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;
|
|
}
|
|
|