Skip to content

Commit

Permalink
Fixed incorrect chunk positions in SpringPopulate and OilPopulate.
Browse files Browse the repository at this point in the history
  • Loading branch information
smariot committed Oct 8, 2014
1 parent 51f2e5a commit a698f56
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion common/buildcraft/core/SpringPopulate.java
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion common/buildcraft/energy/worldgen/OilPopulate.java
Expand Up @@ -61,7 +61,7 @@ private 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);
Expand Down

0 comments on commit a698f56

Please sign in to comment.