Fixed some bugs with inventory

This commit is contained in:
Erik Broes
2011-01-09 23:41:05 +01:00
parent d3b87965c3
commit 4eeceacde7
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