SPIGOT-2000: Picking up items to shield slot working inconsistently when inventory is full

By: PurkkaKoodari <purkka@purkka.codes>
This commit is contained in:
CraftBukkit/Spigot
2019-06-06 01:32:32 +03:00
parent 223b5e4c95
commit 672c7bfa97
3 changed files with 26 additions and 0 deletions

View File

@@ -127,6 +127,9 @@
+
+ // Possibly < 0; fix here so we do not have to modify code below
+ this.pickupDelay = 0;
+ } else if (this.pickupDelay == 0) {
+ // ensure that the code below isn't triggered if canHold says we can't pick the items up
+ this.pickupDelay = -1;
+ }
+ // CraftBukkit end
+