diff options
author | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2021-12-25 02:48:31 +0800 |
---|---|---|
committer | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2021-12-25 02:48:31 +0800 |
commit | 3845a3cb3f8a6f919e67c4e9e8039900b0afce1a (patch) | |
tree | 49a98e7c86daa4d1a1a311aa25ec61e624e308f0 | |
parent | 94e8b483dd90db6b5695da482692c0a4e968db69 (diff) | |
download | SoopyV2-3845a3cb3f8a6f919e67c4e9e8039900b0afce1a.tar.gz SoopyV2-3845a3cb3f8a6f919e67c4e9e8039900b0afce1a.tar.bz2 SoopyV2-3845a3cb3f8a6f919e67c4e9e8039900b0afce1a.zip |
fix not in skyblock detection
-rw-r--r-- | features/dataLoader/index.js | 4 | ||||
-rw-r--r-- | features/slayers/index.js | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/features/dataLoader/index.js b/features/dataLoader/index.js index 42d0ec5..e24c34c 100644 --- a/features/dataLoader/index.js +++ b/features/dataLoader/index.js @@ -78,7 +78,7 @@ class DataLoader extends Feature { } }) } - + if(this.stats["Dungeon"]){ this.stats["Area"] = this.stats["Dungeon"] this.isInDungeon = true @@ -105,7 +105,7 @@ class DataLoader extends Feature { } }) - this.isInSkyblock = Scoreboard.getTitle()?.removeFormatting().endsWith("SKYBLOCK") + this.isInSkyblock = Scoreboard.getTitle()?.removeFormatting().includes("SKYBLOCK") this.area = this.stats["Area"] } diff --git a/features/slayers/index.js b/features/slayers/index.js index d67d0b9..8827343 100644 --- a/features/slayers/index.js +++ b/features/slayers/index.js @@ -119,6 +119,8 @@ class Slayers extends Feature { } renderWorld(ticks){ + + if(this.emanBoss) drawBoxAtEntity(this.emanBoss, 0, 255, 0, 1, -3, ticks, 4, false) Object.values(this.beaconPoints).forEach(line=>{ let lastPoint = undefined @@ -138,8 +140,6 @@ class Slayers extends Feature { drawBoxAtBlock(x-0.5, y+0.7, z-0.5, 255, 0, 0) }) - if(this.emanBoss) drawBoxAtEntity(this.emanBoss, 0, 255, 0, 1, -3, ticks, 4, false) - Object.values(this.beaconLocations).forEach(loc=>{ drawFilledBox(loc[0]+0.5, loc[1], loc[2]+0.5, 1.01, 1.01, 0, 0, 1, 1, true) }) |