Skip to content

Commit

Permalink
Fixed Ruin generation freezing worldgen
Browse files Browse the repository at this point in the history
  • Loading branch information
GirafiStudios committed Oct 31, 2020
1 parent a96e6b6 commit 7859ece
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public Start(Structure<NoFeatureConfig> structure, int chunkPosX, int chunkPosZ,

@Override
public void func_230364_a_(@Nonnull DynamicRegistries registries, @Nonnull ChunkGenerator generator, @Nonnull TemplateManager manager, int chunkX, int chunkZ, @Nonnull Biome biome, @Nonnull NoFeatureConfig config) {
Rotation rotation = Rotation.values()[this.rand.nextInt(Rotation.values().length)];
Rotation rotation = Rotation.randomRotation(this.rand);

int y = MathHelper.nextInt(this.rand, 6, 55);
BlockPos pos = new BlockPos(chunkX * 16 + 8, y, chunkZ * 16 + 8);
Expand Down

0 comments on commit 7859ece

Please sign in to comment.