Fixed some bugs with inventory

By: Erik Broes <erikbroes@grum.nl>
This commit is contained in:
CraftBukkit/Spigot
2011-01-09 23:41:05 +01:00
parent 31ed08bab5
commit 87747a1304
3 changed files with 51 additions and 42 deletions

View File

@@ -48,7 +48,7 @@ public class CraftItemStack extends ItemStack {
@Override
public int getAmount() {
super.setAmount(item != null ? item.a : 0); // sync, needed?
return item.a;
return (item != null ? item.a : 0);
}
@Override