diff --git a/src/main/java/com/gtnewhorizon/structurelib/structure/IStructureElementChain.java b/src/main/java/com/gtnewhorizon/structurelib/structure/IStructureElementChain.java index 5bc55cd8..819990fd 100644 --- a/src/main/java/com/gtnewhorizon/structurelib/structure/IStructureElementChain.java +++ b/src/main/java/com/gtnewhorizon/structurelib/structure/IStructureElementChain.java @@ -62,7 +62,8 @@ default BlocksToPlace getBlocksToPlace(T t, World world, int x, int y, int z, It if (e == null) continue; if (predicate == null) predicate = e.getPredicate(); else predicate = predicate.or(e.getPredicate()); - is.add(e.getStacks()); + Iterable stacks = e.getStacks(); + if (stacks != null) is.add(stacks); } if (predicate == null) return null; return new BlocksToPlace(predicate, Iterables.concat(is));