2021-03-15 23:00:00 +01:00
|
|
|
--- a/net/minecraft/network/NetworkManager.java
|
|
|
|
+++ b/net/minecraft/network/NetworkManager.java
|
2023-06-12 23:00:00 +02:00
|
|
|
@@ -88,6 +88,7 @@
|
2022-10-28 11:19:11 +02:00
|
|
|
private boolean handlingFault;
|
2023-06-12 23:00:00 +02:00
|
|
|
@Nullable
|
|
|
|
private volatile IChatBaseComponent delayedDisconnect;
|
2022-10-28 11:19:11 +02:00
|
|
|
+ public String hostname = ""; // CraftBukkit - add field
|
|
|
|
|
|
|
|
public NetworkManager(EnumProtocolDirection enumprotocoldirection) {
|
|
|
|
this.receiving = enumprotocoldirection;
|
2023-06-12 23:00:00 +02:00
|
|
|
@@ -173,7 +174,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) {
|
2023-06-12 23:00:00 +02:00
|
|
|
@@ -306,7 +307,7 @@
|
|
|
|
}
|
2014-11-25 22:32:16 +01:00
|
|
|
|
2023-06-12 23:00:00 +02:00
|
|
|
if (this.isConnected()) {
|
2015-05-05 22:43:47 +02:00
|
|
|
- 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
|
|
|
}
|
|
|
|
|