Added a more generic air storage avoidance in blueprints, close #1712.

This commit is contained in:
SpaceToad 2014-05-06 09:38:16 +02:00
parent 658e10b12d
commit c09772d5d4

View file

@ -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) {