diff options
author | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-03-14 07:23:39 +0800 |
---|---|---|
committer | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-03-14 07:23:39 +0800 |
commit | 423bf216fb0547446f9853adb9505bfd4174bbd5 (patch) | |
tree | 87b264c7bef716d47308595304f0aca68c40c377 /features/dungeonMap | |
parent | 133f781e0838445bca104490c8ffe0b6398a876e (diff) | |
download | SoopyV2-423bf216fb0547446f9853adb9505bfd4174bbd5.tar.gz SoopyV2-423bf216fb0547446f9853adb9505bfd4174bbd5.tar.bz2 SoopyV2-423bf216fb0547446f9853adb9505bfd4174bbd5.zip |
a?
Diffstat (limited to 'features/dungeonMap')
-rw-r--r-- | features/dungeonMap/index.js | 4 | ||||
-rw-r--r-- | features/dungeonMap/metadata.json | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/features/dungeonMap/index.js b/features/dungeonMap/index.js index 7261c60..317d416 100644 --- a/features/dungeonMap/index.js +++ b/features/dungeonMap/index.js @@ -29,7 +29,7 @@ class DungeonMap extends Feature { onEnable(){ this.initVariables() - this.renderMap = new ToggleSetting("Render Map", "Toggles Rendering the map on the hud (scuffed)", false, "dmap_render", this) + this.renderMap = new ToggleSetting("Render Map", "Toggles Rendering the map on the hud", false, "dmap_render", this) this.mapLocation = new ImageLocationSetting("Map Location", "Sets the location of the map on the hud","dmap_location", this, [10,10, 1], new Image(javax.imageio.ImageIO.read(new java.io.File("./config/ChatTriggers/modules/SoopyV2/features/dungeonMap/map.png"))),100,100) this.mapBackground = new ToggleSetting("Map Background", "Puts a white background begind the map", false, "dmap_background", this) this.brBox = new ToggleSetting("Box around doors in br", "In map category because it uses map to find location (no esp)", true, "dmap_door", this) @@ -328,6 +328,7 @@ class DungeonMap extends Feature { } updateMapImage(){ + try{ World.getAllPlayers().forEach(player=>{ if(player.getPing()===-1)return if(!this.people.includes(player.getName())) return @@ -339,6 +340,7 @@ class DungeonMap extends Feature { uuid: player.getUUID().toString() } }) + }catch(_){}//cocurrent modification if(!this.mortLocation){ try{ World.getAllEntities().forEach(entity=>{ diff --git a/features/dungeonMap/metadata.json b/features/dungeonMap/metadata.json index 077f588..beef50e 100644 --- a/features/dungeonMap/metadata.json +++ b/features/dungeonMap/metadata.json @@ -1,6 +1,6 @@ { "name": "Dungeon Map", - "description": "A really good dungeon map (IN PROGRESS)", + "description": "Cool dungeon map and related features", "isHidden": false, "isTogglable": true, "defaultEnabled": false, |