Skip to content

Commit

Permalink
Fix broken terrain gen after -28675 (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
Caedis authored Nov 30, 2023
1 parent c0868c0 commit 9c064a4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/rwg/world/ChunkGeneratorRealistic.java
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,9 @@ public void generateTerrain(ChunkManagerRealistic cmr, int cx, int cy, Block[] b

public float[] getNewNoise(ChunkManagerRealistic cmr, int x, int y, RealisticBiomeBase biomes[]) {
int i, j, k, l, m, n, p;
// fixes broken chunk gen (from Bartworks ASM)
if (x < -28675) x %= -28675;
if (y < -28675) y %= -28675;

for (i = -sampleSize; i < sampleSize + 5; i++) {
for (j = -sampleSize; j < sampleSize + 5; j++) {
Expand Down

0 comments on commit 9c064a4

Please sign in to comment.