aboutsummaryrefslogtreecommitdiff
path: root/features
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-05-15 10:13:11 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-05-15 10:13:11 +0800
commit7112c1e3da740b20857c6d9eefd2803632f3d248 (patch)
tree35756d23b0ebaa278f0dd81aee8f190424c5ed0d /features
parent926dd831feaa0d88e141b954d2084e19b2ab9529 (diff)
downloadSoopyV2-7112c1e3da740b20857c6d9eefd2803632f3d248.tar.gz
SoopyV2-7112c1e3da740b20857c6d9eefd2803632f3d248.tar.bz2
SoopyV2-7112c1e3da740b20857c6d9eefd2803632f3d248.zip
+ add a cap to the number of puzzle icons on map (lag avoidence)
Diffstat (limited to 'features')
-rw-r--r--features/dungeonMap/index.js2
1 files changed, 1 insertions, 1 deletions
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]
}
}