Cardboard Box no longer picks up blocks that have -1 hardness values, also prevented Electric Chests from being vulnerable to explosives when locked

This commit is contained in:
Aidan C. Brady committed 2015-03-04 17:31:52 -05:00
1 parent b2e532964c
commit 7d17192173
2 files changed
+16 -2

No files matched your search

@@ -79,7 +79,7 @@ public class ItemBlockCardboardBox extends ItemBlock
Block block = world.getBlock(x, y, z);
int meta = world.getBlockMetadata(x, y, z);
if(!world.isRemote && MekanismAPI.isBlockCompatible(Item.getItemFromBlock(block), meta))
if(!world.isRemote && MekanismAPI.isBlockCompatible(Item.getItemFromBlock(block), meta) && block.getBlockHardness(world, x, y, z) != -1)
{
BlockData data = new BlockData();
data.block = block;