mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 23:38:25 +01:00
Properly fix item duplication bug
Credit to prplz for figuring out the real issue
This commit is contained in:
parent
1c531f852f
commit
26ff64cadc
2 changed files with 2 additions and 2 deletions
|
@ -1477,7 +1477,7 @@
|
|||
+
|
||||
+ @Override
|
||||
+ public boolean isImmobile() {
|
||||
+ return super.isImmobile() || !this.getBukkitEntity().isOnline();
|
||||
+ return super.isImmobile() || (this.connection != null && this.connection.isDisconnected()); // Paper - Fix duplication bugs
|
||||
+ }
|
||||
+
|
||||
+ @Override
|
||||
|
|
|
@ -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
|
||||
+
|
||||
|
|
Loading…
Reference in a new issue