From 8e18d19919e6c90c6ee073629d1eff5808a7c819 Mon Sep 17 00:00:00 2001 From: chochem <40274384+chochem@users.noreply.github.com> Date: Fri, 11 Aug 2023 20:25:14 +0100 Subject: [PATCH] use new api for ore chunks (#717) --- .../java/gtPlusPlus/everglades/gen/gt/WorldGen_GT_Base.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/gtPlusPlus/everglades/gen/gt/WorldGen_GT_Base.java b/src/main/java/gtPlusPlus/everglades/gen/gt/WorldGen_GT_Base.java index fcc7c05ae2..a6ad406f85 100644 --- a/src/main/java/gtPlusPlus/everglades/gen/gt/WorldGen_GT_Base.java +++ b/src/main/java/gtPlusPlus/everglades/gen/gt/WorldGen_GT_Base.java @@ -14,6 +14,7 @@ import cpw.mods.fml.common.IWorldGenerator; import gregtech.api.util.GT_Log; +import gregtech.common.GT_Worldgenerator; import gtPlusPlus.api.objects.Logger; import gtPlusPlus.api.objects.random.XSTR; import gtPlusPlus.core.material.ELEMENT; @@ -521,7 +522,7 @@ public void run() { for (int x = wXbox; x < eXbox; x++) { for (int z = nZbox; z < sZbox; z++) { // Determine if this X/Z is an orevein seed - if (((Math.abs(x) % 3) == 1) && ((Math.abs(z) % 3) == 1)) { + if (GT_Worldgenerator.isOreChunk(x, z)) { if (debugWorldGen) GT_Log.out.println("Adding seed x=" + x + " z=" + z); seedList.add(new NearbySeeds(x, z)); }