mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-17 21:33:49 -07:00
Further improving ItemStack handling
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user