From d28c9aa0a1501493a7ef26e18c19b581a9ea4ddc Mon Sep 17 00:00:00 2001 From: SpaceToad Date: Sun, 16 Mar 2014 21:17:38 +0100 Subject: [PATCH] optimization for previous check-in --- common/buildcraft/builders/schematics/SchematicPortal.java | 5 +++++ common/buildcraft/core/blueprints/BptBuilderBlueprint.java | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/common/buildcraft/builders/schematics/SchematicPortal.java b/common/buildcraft/builders/schematics/SchematicPortal.java index 49484776..71ac7780 100755 --- a/common/buildcraft/builders/schematics/SchematicPortal.java +++ b/common/buildcraft/builders/schematics/SchematicPortal.java @@ -26,6 +26,11 @@ public class SchematicPortal extends SchematicBlock { public void writeToWorld(IBuilderContext context, int x, int y, int z) { } + @Override + public boolean isValid(IBuilderContext context, int x, int y, int z) { + return true; + } + @Override public void postProcessing(IBuilderContext context, int x, int y, int z) { context.world().setBlock(x, y, z, Blocks.portal); diff --git a/common/buildcraft/core/blueprints/BptBuilderBlueprint.java b/common/buildcraft/core/blueprints/BptBuilderBlueprint.java index 75aef167..0118e601 100644 --- a/common/buildcraft/core/blueprints/BptBuilderBlueprint.java +++ b/common/buildcraft/core/blueprints/BptBuilderBlueprint.java @@ -128,7 +128,6 @@ public class BptBuilderBlueprint extends BptBuilderBase { checkDone(); if (slot != null) { - postProcessing.add(slot); return slot; } } @@ -138,7 +137,6 @@ public class BptBuilderBlueprint extends BptBuilderBase { checkDone(); if (slot != null) { - postProcessing.add(slot); return slot; } } @@ -155,6 +153,7 @@ public class BptBuilderBlueprint extends BptBuilderBase { while (list.size() > 0) { SchematicToBuild slot = list.removeFirst(); + postProcessing.add(slot); boolean getNext = false;