Properly fix item duplication bug

Credit to prplz for figuring out the real issue
This commit is contained in:
Alfie Cleveland
2016-12-27 01:57:57 +00:00
parent 1c531f852f
commit 26ff64cadc
2 changed files with 2 additions and 2 deletions

View File

@@ -167,7 +167,7 @@
+ }
+
+ public final boolean isDisconnected() {
+ return !this.player.joining && !this.connection.isConnected();
+ return (!this.player.joining && !this.connection.isConnected()) || this.processedDisconnect; // Paper - Fix duplication bugs
+ }
+ // CraftBukkit end
+