Skip to content

Commit

Permalink
fix the oldest bug in the pack
Browse files Browse the repository at this point in the history
  • Loading branch information
chochem authored and glowredman committed Jun 12, 2023
1 parent 6dc5ba6 commit 9d97675
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/gregtech/common/GT_Worldgenerator.java
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,8 @@ 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)) {
// use floorMod because java was written by idiots
if ((Math.floorMod(x, 3) == 1) && (Math.floorMod(z, 3) == 1)) {
if (debugWorldGen) GT_Log.out.println("Adding seed x=" + x + " z=" + z);
seedList.add(new NearbySeeds(x, z));
}
Expand Down

0 comments on commit 9d97675

Please sign in to comment.