2021-03-15 23:00:00 +01:00
|
|
|
--- a/net/minecraft/network/NetworkManager.java
|
|
|
|
+++ b/net/minecraft/network/NetworkManager.java
|
2022-07-27 20:00:00 +02:00
|
|
|
@@ -164,7 +164,7 @@
|
2018-07-15 02:00:00 +02:00
|
|
|
}
|
|
|
|
|
2021-11-21 23:00:00 +01:00
|
|
|
private static <T extends PacketListener> void genericsFtw(Packet<T> packet, PacketListener packetlistener) {
|
|
|
|
- packet.handle(packetlistener);
|
|
|
|
+ packet.handle((T) packetlistener); // CraftBukkit - decompile error
|
2018-07-15 02:00:00 +02:00
|
|
|
}
|
|
|
|
|
2021-11-21 23:00:00 +01:00
|
|
|
public void setListener(PacketListener packetlistener) {
|
2022-07-27 20:00:00 +02:00
|
|
|
@@ -289,7 +289,7 @@
|
2014-11-25 22:32:16 +01:00
|
|
|
|
2021-11-21 23:00:00 +01:00
|
|
|
public void disconnect(IChatBaseComponent ichatbasecomponent) {
|
2015-05-05 22:43:47 +02:00
|
|
|
if (this.channel.isOpen()) {
|
|
|
|
- this.channel.close().awaitUninterruptibly();
|
|
|
|
+ this.channel.close(); // We can't wait as this may be called from an event loop.
|
2021-06-11 07:00:00 +02:00
|
|
|
this.disconnectedReason = ichatbasecomponent;
|
2015-02-26 23:41:06 +01:00
|
|
|
}
|
|
|
|
|