mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-07 11:05:13 +01:00
Proper fix for the console spam on disconnect/kick.
This commit is contained in:
parent
8ba9f32162
commit
c18e04ce8b
2 changed files with 2 additions and 3 deletions
|
@ -46,8 +46,7 @@ class PlayerInstance {
|
||||||
|
|
||||||
public void b(EntityPlayer entityplayer) {
|
public void b(EntityPlayer entityplayer) {
|
||||||
if (!this.b.contains(entityplayer)) {
|
if (!this.b.contains(entityplayer)) {
|
||||||
// CraftBukkit
|
(new IllegalStateException("Failed to remove player. " + entityplayer + " isn\'t in chunk " + this.chunkX + ", " + this.chunkZ)).printStackTrace();
|
||||||
// (new IllegalStateException("Failed to remove player. " + entityplayer + " isn\'t in chunk " + this.chunkX + ", " + this.chunkZ)).printStackTrace();
|
|
||||||
} else {
|
} else {
|
||||||
this.b.remove(entityplayer);
|
this.b.remove(entityplayer);
|
||||||
if (this.b.size() == 0) {
|
if (this.b.size() == 0) {
|
||||||
|
|
|
@ -118,9 +118,9 @@ public class ServerConfigurationManager {
|
||||||
this.playerFileData.a(entityplayer);
|
this.playerFileData.a(entityplayer);
|
||||||
entityplayer.world.kill(entityplayer); // CraftBukkit
|
entityplayer.world.kill(entityplayer); // CraftBukkit
|
||||||
this.players.remove(entityplayer);
|
this.players.remove(entityplayer);
|
||||||
((WorldServer) entityplayer.world).manager.removePlayer(entityplayer);
|
|
||||||
|
|
||||||
return playerQuitEvent.getQuitMessage(); // CraftBukkit
|
return playerQuitEvent.getQuitMessage(); // CraftBukkit
|
||||||
|
// CraftBukkit end
|
||||||
}
|
}
|
||||||
|
|
||||||
public EntityPlayer a(NetLoginHandler netloginhandler, String s) {
|
public EntityPlayer a(NetLoginHandler netloginhandler, String s) {
|
||||||
|
|
Loading…
Reference in a new issue