remove redundant redundancy check, fix #2388
This commit is contained in:
parent
3be7ce1189
commit
24c084b598
1 changed files with 2 additions and 17 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue