Further improving ItemStack handling

This commit is contained in:
feildmaster 2012-05-31 10:15:00 -05:00
parent 13fcb9e371
commit e520032205

View File

@ -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;
}