From 352861f945ed0a632eeeddb18c7fed6a17327c45 Mon Sep 17 00:00:00 2001 From: DoomKitty87 Date: Thu, 24 Aug 2023 00:02:57 -0700 Subject: [PATCH] fixed route gen issues --- web-app/seafoam/src/index.html | 1 + 1 file changed, 1 insertion(+) diff --git a/web-app/seafoam/src/index.html b/web-app/seafoam/src/index.html index 6719f7a..8484fe3 100644 --- a/web-app/seafoam/src/index.html +++ b/web-app/seafoam/src/index.html @@ -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]; } }