Skip to content

Commit

Permalink
Fix IStructureElementChain returning an invalid Iterable
Browse files Browse the repository at this point in the history
  • Loading branch information
Lyfts committed Nov 9, 2024
1 parent 402efdc commit 0a86d48
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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<ItemStack> stacks = e.getStacks();
if (stacks != null) is.add(stacks);
}
if (predicate == null) return null;
return new BlocksToPlace(predicate, Iterables.concat(is));
Expand Down

0 comments on commit 0a86d48

Please sign in to comment.