From 24c084b598cfb7307070c75d97934008f502d82a Mon Sep 17 00:00:00 2001 From: asiekierka Date: Sun, 18 Jan 2015 11:11:03 +0100 Subject: [PATCH] remove redundant redundancy check, fix #2388 --- common/buildcraft/core/InterModComms.java | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/common/buildcraft/core/InterModComms.java b/common/buildcraft/core/InterModComms.java index 921a3142..ba7d9120 100644 --- a/common/buildcraft/core/InterModComms.java +++ b/common/buildcraft/core/InterModComms.java @@ -192,22 +192,12 @@ public final class InterModComms { BCLog.logger.info(String.format("Received an invalid add-facade request %s from mod %s", m.getStringValue(), m.getSender())); } else { Block block = (Block) Block.blockRegistry.getObject(blockName); - if (block.getRenderType() != 0 && block.getRenderType() != 31) { - BuildCraftTransport.facadeItem.addFacade(new ItemStack(block, 1, metaId)); - } else { - logRedundantAddFacadeMessage(m, block.toString()); - } + BuildCraftTransport.facadeItem.addFacade(new ItemStack(block, 1, metaId)); } } } else if (m.isItemStackMessage()) { ItemStack modItemStack = m.getItemStackValue(); - - Block block = Block.getBlockFromItem(modItemStack.getItem()); - if (block != null && block.getRenderType() != 0 && block.getRenderType() != 31) { - BuildCraftTransport.facadeItem.addFacade(modItemStack); - } else if (block != null) { - logRedundantAddFacadeMessage(m, block.toString()); - } + BuildCraftTransport.facadeItem.addFacade(modItemStack); } } catch (Exception ex) { } @@ -230,11 +220,6 @@ public final class InterModComms { } } - private static void logRedundantAddFacadeMessage(IMCMessage m, String blockName) - { - BCLog.logger.warn(String.format("%s is trying to add %s - a facade that BuildCraft will add later. Facade addition not necessary.", m.getSender(), blockName)); - } - public static void processOilLakeBiomeIMC(IMCEvent event, IMCMessage m) { try { String biomeID = m.getStringValue().trim();