mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-24 17:22:55 +01:00
Fix kick messages being lost
By: Thinkofdeath <thinkofdeath@spigotmc.org>
This commit is contained in:
parent
5a46679378
commit
d0e0538aa0
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue