optimization for previous check-in

This commit is contained in:
SpaceToad 2014-03-16 21:17:38 +01:00
parent 3aeb961a31
commit d28c9aa0a1
2 changed files with 6 additions and 2 deletions

View file

@ -26,6 +26,11 @@ public class SchematicPortal extends SchematicBlock {
public void writeToWorld(IBuilderContext context, int x, int y, int z) { 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 @Override
public void postProcessing(IBuilderContext context, int x, int y, int z) { public void postProcessing(IBuilderContext context, int x, int y, int z) {
context.world().setBlock(x, y, z, Blocks.portal); context.world().setBlock(x, y, z, Blocks.portal);

View file

@ -128,7 +128,6 @@ public class BptBuilderBlueprint extends BptBuilderBase {
checkDone(); checkDone();
if (slot != null) { if (slot != null) {
postProcessing.add(slot);
return slot; return slot;
} }
} }
@ -138,7 +137,6 @@ public class BptBuilderBlueprint extends BptBuilderBase {
checkDone(); checkDone();
if (slot != null) { if (slot != null) {
postProcessing.add(slot);
return slot; return slot;
} }
} }
@ -155,6 +153,7 @@ public class BptBuilderBlueprint extends BptBuilderBase {
while (list.size() > 0) { while (list.size() > 0) {
SchematicToBuild slot = list.removeFirst(); SchematicToBuild slot = list.removeFirst();
postProcessing.add(slot);
boolean getNext = false; boolean getNext = false;