From 50a36b3aa90087e9d9ed45f951106516d95a1e5a Mon Sep 17 00:00:00 2001 From: asiekierka Date: Sun, 2 Nov 2014 20:04:20 +0100 Subject: [PATCH] fix #2143 --- .../builders/HeuristicBlockDetection.java | 32 +++++++++++-------- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/common/buildcraft/builders/HeuristicBlockDetection.java b/common/buildcraft/builders/HeuristicBlockDetection.java index f78c4127..45e65d25 100644 --- a/common/buildcraft/builders/HeuristicBlockDetection.java +++ b/common/buildcraft/builders/HeuristicBlockDetection.java @@ -53,23 +53,27 @@ public final class HeuristicBlockDetection { for (int meta = 0; meta < 16; meta++) { if (!SchematicRegistry.INSTANCE.isSupported(block, meta)) { - if (block.hasTileEntity(meta)) { - // All tiles are registered as creative only. - // This is helpful for example for server admins. - SchematicRegistry.INSTANCE.registerSchematicBlock(block, meta, SchematicTileCreative.class); - continue; - } - - boolean creativeOnly = false; - try { - if (creativeOnly) { - SchematicRegistry.INSTANCE.registerSchematicBlock(block, meta, SchematicBlockCreative.class); - } else { - SchematicRegistry.INSTANCE.registerSchematicBlock(block, meta, SchematicBlock.class); + if (block.hasTileEntity(meta)) { + // All tiles are registered as creative only. + // This is helpful for example for server admins. + SchematicRegistry.INSTANCE.registerSchematicBlock(block, meta, SchematicTileCreative.class); + continue; + } + + boolean creativeOnly = false; + + try { + if (creativeOnly) { + SchematicRegistry.INSTANCE.registerSchematicBlock(block, meta, SchematicBlockCreative.class); + } else { + SchematicRegistry.INSTANCE.registerSchematicBlock(block, meta, SchematicBlock.class); + } + } catch (Exception e) { + e.printStackTrace(); } } catch (Exception e) { - e.printStackTrace(); + } } }