mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-27 13:06:02 +01:00
Further improving ItemStack handling
This commit is contained in:
parent
13fcb9e371
commit
e520032205
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user