diff options
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/net/minecraft/server/PlayerInventory.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/net/minecraft/server/PlayerInventory.java b/src/main/java/net/minecraft/server/PlayerInventory.java index d01be1e1..df502e88 100644 --- a/src/main/java/net/minecraft/server/PlayerInventory.java +++ b/src/main/java/net/minecraft/server/PlayerInventory.java @@ -439,6 +439,11 @@ public class PlayerInventory implements IInventory { } public ItemStack getCarried() { + // CraftBukkit start + if (this.f != null && this.f.count == 0) { + this.setCarried(null); + } + // CraftBukkit end return this.f; } |