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() {
|
public ItemStack getCarried() {
|
||||||
|
// CraftBukkit start
|
||||||
|
if (this.f != null && this.f.count == 0) {
|
||||||
|
this.setCarried(null);
|
||||||
|
}
|
||||||
|
// CraftBukkit end
|
||||||
return this.f;
|
return this.f;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user