aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2021-12-25 02:06:46 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2021-12-25 02:06:46 +0800
commitc3405b49823c507785d15a2c1e43aceefadcdd09 (patch)
tree7951bddfb26735343a21407a6a9c399d2deab1d1
parente89e5215c0a32c0fdbecf3c04dd1352d8a0f3e14 (diff)
downloadSoopyV2-c3405b49823c507785d15a2c1e43aceefadcdd09.tar.gz
SoopyV2-c3405b49823c507785d15a2c1e43aceefadcdd09.tar.bz2
SoopyV2-c3405b49823c507785d15a2c1e43aceefadcdd09.zip
fix ci?
-rw-r--r--CI/supporttest.js2
-rw-r--r--features/slayers/index.js10
2 files changed, 11 insertions, 1 deletions
diff --git a/CI/supporttest.js b/CI/supporttest.js
index a1279ec..e88125e 100644
--- a/CI/supporttest.js
+++ b/CI/supporttest.js
@@ -7,7 +7,7 @@
let fs = require("fs")
let errors = []
- let dirName = __dirname.split("\\")
+ let dirName = (__dirname || process.env.HOME).split("\\")
dirName.pop()
dirName = dirName.join("\\")
diff --git a/features/slayers/index.js b/features/slayers/index.js
index 6f2bc15..2ebe0fe 100644
--- a/features/slayers/index.js
+++ b/features/slayers/index.js
@@ -274,6 +274,16 @@ class Slayers extends Feature {
}
}
}
+ }else{ //CT 2.0 support
+ for(let x = pos[0] - 5; x <= pos[0] + 5; x++){
+ for(let y = pos[1] - 5; y <= pos[1] + 5; y++){
+ for(let z = pos[2] - 5; z <= pos[2] + 5; z++){
+ if(World.getBlockAt(Math.floor(x), Math.floor(y), Math.floor(z)).getType().getID() === 138){
+ this.beaconLocations[e[m.getUniqueID.Entity]().toString()] = [Math.floor(x), Math.floor(y), Math.floor(z)]
+ }
+ }
+ }
+ }
}
// if(!this.beaconLocations[e[m.getUniqueID.Entity]().toString()]){