fixed route gen issues

This commit is contained in:
DoomKitty87 2023-08-24 00:02:57 -07:00
parent 3f109eae3a
commit 352861f945

View file

@ -276,6 +276,7 @@
for (let x = 0; x < 128; x++) {
for (let y = 0; y < 256; y++) {
for (let z = 0; z < 128; z++) {
if (sectors[sector][0] - x - 202 > 621 || sectors[sector][0] - x - 202 < 0 || z + sectors[sector][1] - 202 > 621 || z + sectors[sector][1] - 202 < 0) continue;
blockData[sectors[sector][0] - x - 202][y][z + sectors[sector][1] - 202] = gemData[x][y][z];
}
}