mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-22 07:43:49 -07:00
Further improving ItemStack handling
This commit is contained in:
@@ -439,6 +439,11 @@ public class PlayerInventory implements IInventory {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public ItemStack getCarried() {
|
public ItemStack getCarried() {
|
||||||
|
// CraftBukkit start
|
||||||
|
if (this.f != null && this.f.count == 0) {
|
||||||
|
this.setCarried(null);
|
||||||
|
}
|
||||||
|
// CraftBukkit end
|
||||||
return this.f;
|
return this.f;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user