aboutsummaryrefslogtreecommitdiff
path: root/features/slayers
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-01-11 05:03:00 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-01-11 05:03:00 +0800
commit1ecfecc53f68a9ee371bf105eb8a656e0a98c5b3 (patch)
tree1c8436eda071169a5bb89d902bee091985edfa49 /features/slayers
parent5a018f398d2de5351778af35306f387eadcceb68 (diff)
downloadSoopyV2-1ecfecc53f68a9ee371bf105eb8a656e0a98c5b3.tar.gz
SoopyV2-1ecfecc53f68a9ee371bf105eb8a656e0a98c5b3.tar.bz2
SoopyV2-1ecfecc53f68a9ee371bf105eb8a656e0a98c5b3.zip
+ Warning message when cannot connect to soopy server
+ Museum gui performance improvements + HUD api stat thingo + Settings for slayer features actually toggle things + Stat next to name loading time optimisations (should help if you are in a party)
Diffstat (limited to 'features/slayers')
-rw-r--r--features/slayers/index.js28
1 files changed, 15 insertions, 13 deletions
diff --git a/features/slayers/index.js b/features/slayers/index.js
index 8827343..8035953 100644
--- a/features/slayers/index.js
+++ b/features/slayers/index.js
@@ -120,17 +120,22 @@ 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
- line.forEach(p=>{
- if(lastPoint){
- drawLine(lastPoint[0], lastPoint[1], lastPoint[2], p[0], p[1], p[2], 0, 0, 255, 3)
- }
- lastPoint = p
+ if(this.emanBoss && this.boxAroundEmanBoss.getValue()) drawBoxAtEntity(this.emanBoss, 0, 255, 0, 1, -3, ticks, 4, false)
+
+ if(this.boxToEmanBeacon.getValue()){
+ Object.values(this.beaconPoints).forEach(line=>{
+ let lastPoint = undefined
+ line.forEach(p=>{
+ if(lastPoint){
+ drawLine(lastPoint[0], lastPoint[1], lastPoint[2], p[0], p[1], p[2], 0, 0, 255, 3)
+ }
+ lastPoint = p
+ })
})
- })
+ 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)
+ })
+ }
this.eyeE.forEach(e=>{
let x = e.getX() + ((e.getX()-e.getLastX())*ticks)
@@ -140,9 +145,6 @@ class Slayers extends Feature {
drawBoxAtBlock(x-0.5, y+0.7, z-0.5, 255, 0, 0)
})
- 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)
- })
}
entityJoinWorldEvent(event){