diff options
author | Thinkofdeath <thinkofdeath@spigotmc.org> | 2015-01-04 20:12:02 +0000 |
---|---|---|
committer | Thinkofdeath <thinkofdeath@spigotmc.org> | 2015-01-04 20:12:02 +0000 |
commit | c4fd085432ba9638596f9cc13c991490f9d1c12d (patch) | |
tree | 793f50f8d840d42188bde11c6acea4ecbbfb72d6 | |
parent | a28895313cc8c20c15733bc25c8e6a90c937b0cb (diff) | |
download | craftbukkit-c4fd085432ba9638596f9cc13c991490f9d1c12d.tar craftbukkit-c4fd085432ba9638596f9cc13c991490f9d1c12d.tar.gz craftbukkit-c4fd085432ba9638596f9cc13c991490f9d1c12d.tar.lz craftbukkit-c4fd085432ba9638596f9cc13c991490f9d1c12d.tar.xz craftbukkit-c4fd085432ba9638596f9cc13c991490f9d1c12d.zip |
Fix kick messages being lost
-rw-r--r-- | nms-patches/PlayerConnection.patch | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nms-patches/PlayerConnection.patch b/nms-patches/PlayerConnection.patch index 19d548ef..358962f2 100644 --- a/nms-patches/PlayerConnection.patch +++ b/nms-patches/PlayerConnection.patch @@ -1,5 +1,5 @@ ---- ../work/decompile-8eb82bde//net/minecraft/server/PlayerConnection.java Mon Dec 15 10:02:18 2014 -+++ src/main/java/net/minecraft/server/PlayerConnection.java Mon Dec 15 10:02:18 2014 +--- ../work/decompile-8eb82bde//net/minecraft/server/PlayerConnection.java 2015-01-04 20:11:55.473664041 +0000 ++++ src/main/java/net/minecraft/server/PlayerConnection.java 2015-01-04 20:11:55.473664041 +0000 @@ -16,6 +16,48 @@ import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; @@ -137,8 +137,8 @@ + // CraftBukkit end ChatComponentText chatcomponenttext = new ChatComponentText(s); -+ this.a(chatcomponenttext); // CraftBukkit - fire quit instantly this.networkManager.a(new PacketPlayOutKickDisconnect(chatcomponenttext), new PlayerConnectionFuture(this, chatcomponenttext), new GenericFutureListener[0]); ++ this.a(chatcomponenttext); // CraftBukkit - fire quit instantly this.networkManager.k(); - Futures.getUnchecked(this.minecraftServer.postToMainThread(new PlayerConnectionDisconnector(this))); + this.minecraftServer.postToMainThread(new PlayerConnectionDisconnector(this)); // CraftBukkit - Don't wait |