diff options
| author | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-07-09 22:40:15 +0800 |
|---|---|---|
| committer | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-07-09 22:40:15 +0800 |
| commit | f8cef8855971383314f475829958bcdea2d49c96 (patch) | |
| tree | 72735a23f5ff597f6e270795914c69ae0c2d69af /features/dungeonRoutes | |
| parent | 4acbd7b109bb22b07a0f13502a3173cb9e8bf63d (diff) | |
| download | SoopyV2-f8cef8855971383314f475829958bcdea2d49c96.tar.gz SoopyV2-f8cef8855971383314f475829958bcdea2d49c96.tar.bz2 SoopyV2-f8cef8855971383314f475829958bcdea2d49c96.zip | |
+ option to show secrets in rooms (syncs across soopyv2 users)
+ meta
Diffstat (limited to 'features/dungeonRoutes')
| -rw-r--r-- | features/dungeonRoutes/index.js | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/features/dungeonRoutes/index.js b/features/dungeonRoutes/index.js index b7e2d6a..3327aac 100644 --- a/features/dungeonRoutes/index.js +++ b/features/dungeonRoutes/index.js @@ -225,10 +225,10 @@ Client.getMinecraft().field_71438_f.func_174974_b( if (this.getTopBlockAt(x + width, y + height, roofY) === 11) return 3 if (this.getTopBlockAt(x, y + height, roofY) === 11) return 4 } else { - let one = this.getTopBlockAt(x + width / 2 + 1, y + height / 2, roofY) - let two = this.getTopBlockAt(x + width / 2 - 1, y + height / 2, roofY) - let three = this.getTopBlockAt(x + width / 2, y + height / 2 + 1, roofY) - let four = this.getTopBlockAt(x + width / 2, y + height / 2 - 1, roofY) + let one = this.getTopBlockAt2(x + width / 2 + 1, y + height / 2, roofY) + let two = this.getTopBlockAt2(x + width / 2 - 1, y + height / 2, roofY) + let three = this.getTopBlockAt2(x + width / 2, y + height / 2 + 1, roofY) + let four = this.getTopBlockAt2(x + width / 2, y + height / 2 - 1, roofY) if (one === 0 && three === 0) return 1 if (two === 0 && three === 0) return 2 @@ -293,6 +293,11 @@ Client.getMinecraft().field_71438_f.func_174974_b( return World.getBlockStateAt(new BlockPos(x, y, z)).getMetadata() } + getTopBlockAt2(x, z, y) { + if (!y) y = this.getHeightAt(x, z) + + return World.getBlockStateAt(new BlockPos(x, y, z)).getBlockId() + } getCurrentRoomData() { let roomId = this.idMap.get(this.getCurrentRoomId()) |
