Prevent bins from stacking

This commit is contained in:
aidancbrady 2015-05-28 16:39:57 -04:00
parent 18c0159680
commit 1b41d04b93

View file

@ -69,6 +69,17 @@ public class ItemBlockBasic extends ItemBlock implements IEnergizedItem
setHasSubtypes(true);
}
@Override
public int getItemStackLimit(ItemStack stack)
{
if(Block.getBlockFromItem(this) == MekanismBlocks.BasicBlock && stack.getItemDamage() == 6)
{
return 1;
}
return super.getItemStackLimit(stack);
}
public ItemStack getUnchargedCell(InductionCellTier tier)
{
ItemStack stack = new ItemStack(MekanismBlocks.BasicBlock2, 1, 3);