mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-22 04:52:25 +00:00
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:
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;
|
||||
|
||||
Reference in new issue
Block a user