diff options
author | munvoseli <muslinmelody@gmail.com> | 2023-06-19 02:54:50 -0400 |
---|---|---|
committer | munvoseli <muslinmelody@gmail.com> | 2023-06-19 02:54:50 -0400 |
commit | ae10a67340fc07ed8c1d7b9d470ebf3be58c8b4b (patch) | |
tree | f75fb742612e1c2c556aa84339bb26e7d9b53246 | |
parent | 0c0d7a191678b1c848985768f9a29a3a7014a4bd (diff) |
hundreds of thousands of blocks; distances highly nontrivial to traverse
-rw-r--r-- | utils/tele.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/tele.js b/utils/tele.js index 89c62c7..95da71b 100644 --- a/utils/tele.js +++ b/utils/tele.js @@ -83,7 +83,8 @@ doorUtils.getDestCoord = function(doorid) { if (doorid === null) console.log("ladkfjajsf"); let door = doors[doorid]; if (door.destId === null) { // generate new chunk - for (let r = 4000; r <= 64000; r *= 2) { + const r = 100000 + 900000 * Math.random(); + for (let i = 0; i < 10; i++) { let th = Math.random() * 2 * Math.PI; let xoff = Math.cos(th) * r; let yoff = Math.sin(th) * r; |