Fixed a Bin issue

This commit is contained in:
aidancbrady 2015-05-28 16:43:01 -04:00
parent 1b41d04b93
commit c2f7735115
2 changed files with 2 additions and 2 deletions

View file

@ -74,7 +74,7 @@ public class ItemBlockBasic extends ItemBlock implements IEnergizedItem
{
if(Block.getBlockFromItem(this) == MekanismBlocks.BasicBlock && stack.getItemDamage() == 6)
{
return 1;
return new InventoryBin(stack).getItemCount() == 0 ? super.getItemStackLimit(stack) : 1;
}
return super.getItemStackLimit(stack);

View file

@ -40,7 +40,7 @@ public class BinRecipe implements IRecipe
return false;
}
return itemStack.getItem() instanceof ItemBlockBasic && itemStack.getItemDamage() == 6;
return itemStack.getItem() instanceof ItemBlockBasic && itemStack.getItemDamage() == 6 && itemStack.stackSize == 1;
}
@Override