Skip to content

Commit

Permalink
Merge pull request #7 from TelepathicGrunt/main
Browse files Browse the repository at this point in the history
add check for world bottom
  • Loading branch information
Pyrix25633 authored Sep 25, 2022
2 parents 9b4bb40 + 3bee4d4 commit c53663b
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@ public Optional<Structure.StructurePosition> getStructurePosition(Structure.Cont
false,
this.projectStartToHeightmap,
this.maxDistanceFromCenter);

BlockPos pos = structurePiecesGenerator.get().position();
if (pos.getY() <= 16) {
return Optional.empty();
}
return structurePiecesGenerator;
}

Expand Down

0 comments on commit c53663b

Please sign in to comment.