aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-08-24 17:11:31 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-08-24 17:11:31 +0800
commitc5a1a2c9bc2e02cd0e53181a41c29124680e2b59 (patch)
tree9b33e61ca165aab874c491042944ae07c345adca
parent53fb12ef7d1774fc07a6e301d220ac8261a2547c (diff)
downloadSoopyV2-c5a1a2c9bc2e02cd0e53181a41c29124680e2b59.tar.gz
SoopyV2-c5a1a2c9bc2e02cd0e53181a41c29124680e2b59.tar.bz2
SoopyV2-c5a1a2c9bc2e02cd0e53181a41c29124680e2b59.zip
make box bigger + meta
-rw-r--r--features/specialMining/index.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/features/specialMining/index.js b/features/specialMining/index.js
index 796d29a..97ec238 100644
--- a/features/specialMining/index.js
+++ b/features/specialMining/index.js
@@ -137,11 +137,12 @@ class PowderAndScatha extends Feature {
let del = []
for (let key of this.chests.keys()) {
let pos = this.chests.get(key)
- let { x1, y1, x2, y2 } = RenderLib2D.calculateBoundingBox(new net.minecraft.util.AxisAlignedBB(pos[1] - 0.05, pos[2] - 0.05, pos[3] - 0.05, pos[1] + 0.05, pos[2] + 0.05, pos[3] + 0.05))
+ let size = 0.2
+ let { x1, y1, x2, y2 } = RenderLib2D.calculateBoundingBox(new net.minecraft.util.AxisAlignedBB(pos[1] - size / 2, pos[2] - size / 2, pos[3] - size / 2, pos[1] + size / 2, pos[2] + size / 2, pos[3] + size / 2))
let hovered = (x1 < Renderer.screen.getWidth() / 2 && x2 > Renderer.screen.getWidth() / 2 && y1 < Renderer.screen.getHeight() / 2 && y2 > Renderer.screen.getHeight() / 2)
- drawFilledBox(pos[1], pos[2] - 0.05, pos[3], 0.1, 0.1, hovered ? 0 : 255, hovered ? 255 : 0, 0, 1, false)
+ drawFilledBox(pos[1], pos[2] - size / 2, pos[3], size, size, hovered ? 0 : 255, hovered ? 255 : 0, 0, 1, false)
if (Date.now() - pos[0] > 5000) {
del.push(key)