--- a/net/minecraft/network/NetworkManager.java +++ b/net/minecraft/network/NetworkManager.java @@ -84,6 +84,7 @@ private float averageSentPackets; private int tickCount; private boolean handlingFault; + public String hostname = ""; // CraftBukkit - add field public NetworkManager(EnumProtocolDirection enumprotocoldirection) { this.receiving = enumprotocoldirection; @@ -164,7 +165,7 @@ } private static void genericsFtw(Packet packet, PacketListener packetlistener) { - packet.handle(packetlistener); + packet.handle((T) packetlistener); // CraftBukkit - decompile error } public void setListener(PacketListener packetlistener) { @@ -289,7 +290,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; }