Skip to content
This repository has been archived by the owner on May 26, 2024. It is now read-only.

Commit

Permalink
use new api for ore chunks (#717)
Browse files Browse the repository at this point in the history
  • Loading branch information
chochem authored Aug 11, 2023
1 parent c549b77 commit 8e18d19
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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));
}
Expand Down

0 comments on commit 8e18d19

Please sign in to comment.