Prevent bins from stacking
This commit is contained in:
parent
18c0159680
commit
1b41d04b93
1 changed files with 11 additions and 0 deletions
|
@ -69,6 +69,17 @@ public class ItemBlockBasic extends ItemBlock implements IEnergizedItem
|
||||||
setHasSubtypes(true);
|
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)
|
public ItemStack getUnchargedCell(InductionCellTier tier)
|
||||||
{
|
{
|
||||||
ItemStack stack = new ItemStack(MekanismBlocks.BasicBlock2, 1, 3);
|
ItemStack stack = new ItemStack(MekanismBlocks.BasicBlock2, 1, 3);
|
||||||
|
|
Loading…
Reference in a new issue