Crates can now be stacked to 64

That is if they are empty
This commit is contained in:
DarkGuardsman 2013-12-04 14:22:43 -05:00
parent 403c8431f8
commit 6110377655

View file

@ -16,7 +16,6 @@ public class ItemBlockCrate extends ItemBlock
public ItemBlockCrate(int par1)
{
super(par1);
this.setMaxStackSize(1);
}
@Override
@ -35,10 +34,17 @@ public class ItemBlockCrate extends ItemBlock
par3List.add(containingStack.getDisplayName());
par3List.add("Amount: " + containingStack.stackSize);
}
else
}
@Override
public int getItemStackLimit(ItemStack stack)
{
ItemStack containingStack = getContainingItemStack(stack);
if (containingStack != null)
{
par3List.add("Empty");
return 1;
}
return super.getItemStackLimit();
}
@Override