Merge pull request #2038 from smariot/6.0.x
Fixed incorrect chunk positions in SpringPopulate and OilPopulate.
This commit is contained in:
commit
944b4a3609
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue