From 7112c1e3da740b20857c6d9eefd2803632f3d248 Mon Sep 17 00:00:00 2001 From: Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> Date: Sun, 15 May 2022 10:13:11 +0800 Subject: + add a cap to the number of puzzle icons on map (lag avoidence) --- features/dungeonMap/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'features/dungeonMap') diff --git a/features/dungeonMap/index.js b/features/dungeonMap/index.js index bf13099..fd8b0a0 100644 --- a/features/dungeonMap/index.js +++ b/features/dungeonMap/index.js @@ -577,7 +577,7 @@ class DungeonMap extends Feature { if (bytes[tx + ty * 128] === 66) { - if (!this.puzzles[(tx) * 128 + ty]) { + if (!this.puzzles[(tx) * 128 + ty] && Object.keys(this.puzzles).length < 10) { this.puzzles[(tx) * 128 + ty] = ["Loading", false] } } -- cgit