From 433ee183dd0d2a5ae7f4cdc0b350b42a23d1c2c7 Mon Sep 17 00:00:00 2001 From: lyricalreverie <39663951+lyricalreverie@users.noreply.github.com> Date: Sat, 26 May 2018 22:22:39 -0700 Subject: [PATCH] Update ChunkGeneratorOverworldBOP.java Lava lake event should not be posted unless checks of hasVillageGenerated, lavaLakeChance and useLavaLakes pass for consistency with vanilla chunk generation. Event subscribers will assume those checks have already passed. --- .../biomesoplenty/common/world/ChunkGeneratorOverworldBOP.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/biomesoplenty/common/world/ChunkGeneratorOverworldBOP.java b/src/main/java/biomesoplenty/common/world/ChunkGeneratorOverworldBOP.java index e1b9c3acb..59853d250 100644 --- a/src/main/java/biomesoplenty/common/world/ChunkGeneratorOverworldBOP.java +++ b/src/main/java/biomesoplenty/common/world/ChunkGeneratorOverworldBOP.java @@ -541,7 +541,7 @@ public class ChunkGeneratorOverworldBOP implements IChunkGenerator } // add lava lakes - if (TerrainGen.populate(this, world, rand, chunkX, chunkZ, hasVillageGenerated, LAVA) && !hasVillageGenerated && this.rand.nextInt(this.settings.lavaLakeChance / 10) == 0 && this.settings.useLavaLakes) + if (!hasVillageGenerated && this.rand.nextInt(this.settings.lavaLakeChance / 10) == 0 && this.settings.useLavaLakes && TerrainGen.populate(this, world, rand, chunkX, chunkZ, hasVillageGenerated, LAVA)) { target = decorateStart.add(this.rand.nextInt(16), this.rand.nextInt(248) + 8, this.rand.nextInt(16)); if (target.getY() < 63 || this.rand.nextInt(this.settings.lavaLakeChance / 8) == 0)