From a698f56719a4dd89f5577f58d19b8c315a50ec51 Mon Sep 17 00:00:00 2001 From: Tyson Brown Date: Wed, 8 Oct 2014 13:15:36 -0400 Subject: [PATCH] Fixed incorrect chunk positions in SpringPopulate and OilPopulate. --- common/buildcraft/core/SpringPopulate.java | 2 +- common/buildcraft/energy/worldgen/OilPopulate.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/buildcraft/core/SpringPopulate.java b/common/buildcraft/core/SpringPopulate.java index 2cfbf0e4..e345aae3 100644 --- a/common/buildcraft/core/SpringPopulate.java +++ b/common/buildcraft/core/SpringPopulate.java @@ -28,7 +28,7 @@ public class SpringPopulate { @SubscribeEvent public void populate(PopulateChunkEvent.Post event) { - boolean doGen = TerrainGen.populate(event.chunkProvider, event.world, event.rand, event.chunkX, event.chunkX, event.hasVillageGenerated, PopulateChunkEvent.Populate.EventType.CUSTOM); + boolean doGen = TerrainGen.populate(event.chunkProvider, event.world, event.rand, event.chunkX, event.chunkZ, event.hasVillageGenerated, PopulateChunkEvent.Populate.EventType.CUSTOM); if (!doGen) { event.setResult(Result.ALLOW); diff --git a/common/buildcraft/energy/worldgen/OilPopulate.java b/common/buildcraft/energy/worldgen/OilPopulate.java index 2c03c610..a46d695e 100644 --- a/common/buildcraft/energy/worldgen/OilPopulate.java +++ b/common/buildcraft/energy/worldgen/OilPopulate.java @@ -61,7 +61,7 @@ public final class OilPopulate { @SubscribeEvent public void populate(PopulateChunkEvent.Pre event) { - boolean doGen = TerrainGen.populate(event.chunkProvider, event.world, event.rand, event.chunkX, event.chunkX, event.hasVillageGenerated, EVENT_TYPE); + boolean doGen = TerrainGen.populate(event.chunkProvider, event.world, event.rand, event.chunkX, event.chunkZ, event.hasVillageGenerated, EVENT_TYPE); if (!doGen) { event.setResult(Result.ALLOW);