diff --git a/common/mekanism/api/MekanismAPI.java b/common/mekanism/api/MekanismAPI.java index d500de6a9..147e24f7e 100644 --- a/common/mekanism/api/MekanismAPI.java +++ b/common/mekanism/api/MekanismAPI.java @@ -12,23 +12,15 @@ public class MekanismAPI public static boolean isBlockCompatible(int id, int meta) { - boolean has = false; - for(BlockInfo i : cardboardBoxIgnore) { if(i.id == id && (i.meta == OreDictionary.WILDCARD_VALUE || i.meta == meta)) { - has = true; - break; + return false; } } - if(!has) - { - return true; - } - - return false; + return true; } public static void addBoxBlacklist(int id, int meta) diff --git a/common/mekanism/common/item/ItemBlockCardboardBox.java b/common/mekanism/common/item/ItemBlockCardboardBox.java index 7ff1343d7..3f18a808e 100644 --- a/common/mekanism/common/item/ItemBlockCardboardBox.java +++ b/common/mekanism/common/item/ItemBlockCardboardBox.java @@ -75,7 +75,7 @@ public class ItemBlockCardboardBox extends ItemBlock int id = world.getBlockId(x, y, z); int meta = world.getBlockMetadata(x, y, z); - if(!world.isRemote && !MekanismAPI.isBlockCompatible(id, meta)) + if(!world.isRemote && MekanismAPI.isBlockCompatible(id, meta)) { BlockData data = new BlockData(); data.id = id;