Added a more generic air storage avoidance in blueprints, close #1712.
This commit is contained in:
parent
658e10b12d
commit
c09772d5d4
1 changed files with 7 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue