Skip to content

Commit

Permalink
fix: fixed siren islands only generating down to y=0
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBv committed Dec 22, 2023
1 parent c7f0303 commit cc99ce6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public boolean place(FeaturePlaceContext<NoneFeatureConfiguration> context) {
int layer = 0;
int sirens = 0;
int sirensMax = 1 + rand.nextInt(3);
while (!worldIn.getBlockState(center).canOcclude() && center.getY() >= 0) {
while (!worldIn.getBlockState(center).canOcclude() && center.getY() >= worldIn.getMinBuildHeight()) {
layer++;
for (float i = 0; i < getRadius(layer, up); i += 0.5) {
for (float j = 0; j < 2 * Math.PI * i + rand.nextInt(2); j += 0.5) {
Expand Down

0 comments on commit cc99ce6

Please sign in to comment.