From c09772d5d403f935957b7543943e97402b5e8874 Mon Sep 17 00:00:00 2001 From: SpaceToad Date: Tue, 6 May 2014 09:38:16 +0200 Subject: [PATCH] Added a more generic air storage avoidance in blueprints, close #1712. --- common/buildcraft/core/blueprints/Blueprint.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/common/buildcraft/core/blueprints/Blueprint.java b/common/buildcraft/core/blueprints/Blueprint.java index d2022094..52162bf5 100644 --- a/common/buildcraft/core/blueprints/Blueprint.java +++ b/common/buildcraft/core/blueprints/Blueprint.java @@ -77,6 +77,13 @@ public class Blueprint extends BlueprintBase { BptContext bptContext = (BptContext) context; Block block = anchorTile.getWorldObj().getBlock(x, y, z); + if (context.world().isAirBlock(x, y, z)) { + // Although no schematic will be returned for the block "air" by + // the registry, there can be other blocks considered as air. This + // will make sure that they don't get recorded. + return; + } + SchematicBlock slot = SchematicRegistry.newSchematicBlock(block); if (slot == null) {