diff options
author | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-01-29 13:14:49 +0800 |
---|---|---|
committer | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-01-29 13:14:49 +0800 |
commit | c99a5f49a423629dfd347c183dae611ea04bfd44 (patch) | |
tree | d218fada21f1a71e86242b1a6ce799196d0bebe4 /features/dungeonSolvers | |
parent | 792431361378147d904b9a102ad7d47d08c1108a (diff) | |
download | SoopyV2-c99a5f49a423629dfd347c183dae611ea04bfd44.tar.gz SoopyV2-c99a5f49a423629dfd347c183dae611ea04bfd44.tar.bz2 SoopyV2-c99a5f49a423629dfd347c183dae611ea04bfd44.zip |
make blaze solver lines not visable thru walls
Diffstat (limited to 'features/dungeonSolvers')
-rw-r--r-- | features/dungeonSolvers/index.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/features/dungeonSolvers/index.js b/features/dungeonSolvers/index.js index b0ee2bc..f128d42 100644 --- a/features/dungeonSolvers/index.js +++ b/features/dungeonSolvers/index.js @@ -4,7 +4,6 @@ import { f, m } from "../../../mappings/mappings"; import Feature from "../../featureClass/class"; import { numberWithCommas } from "../../utils/numberUtils"; import * as renderUtils from "../../utils/renderUtils"; -import { drawLine } from "../../utils/renderUtils"; import HudTextElement from "../hud/HudTextElement"; import LocationSetting from "../settings/settingThings/location"; import ToggleSetting from "../settings/settingThings/toggle"; @@ -203,7 +202,7 @@ class DungeonSolvers extends Feature { let lastLoc = [this.blazes[0].getX(), this.blazes[0].getY()+1.5, this.blazes[0].getZ()] this.blazes.forEach((blaze, i) => { if(i<3 && i!==0){ - drawLine(lastLoc[0], lastLoc[1], lastLoc[2], blaze.getX(), blaze.getY()+1.5, blaze.getZ(), i===1?0:255, i===1?255:0, 0, 3/i) + renderUtils.drawLineWithDepth(lastLoc[0], lastLoc[1], lastLoc[2], blaze.getX(), blaze.getY()+1.5, blaze.getZ(), i===1?0:255, i===1?255:0, 0, 3/i) lastLoc = [blaze.getX(), blaze.getY()+1.5,blaze.getZ()] } }) @@ -438,7 +437,7 @@ class DungeonSolvers extends Feature { let lastHp = -1 this.blazes.forEach(b=>{ if(b.getEntity().func_110143_aJ() === lastHp){ - ChatLib.chat(this.FeatureManager.messagePrefix + "&cWARNING: Detected 2 blazes with the same hp.") + ChatLib.chat(this.FeatureManager.messagePrefix + "&cWARNING: Detected 2 blazes with the same hp. (" + lastHp + ")") } lastHp = b.getEntity().func_110143_aJ() }) |