aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-08-25 07:23:23 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-08-25 07:23:23 +0800
commitee8f99633a66e12b1d0c6fb9daaedb2ba802b755 (patch)
treea68afee1e257925ad92dedb07f8fba6261ad5609
parentc5a1a2c9bc2e02cd0e53181a41c29124680e2b59 (diff)
downloadSoopyV2-ee8f99633a66e12b1d0c6fb9daaedb2ba802b755.tar.gz
SoopyV2-ee8f99633a66e12b1d0c6fb9daaedb2ba802b755.tar.bz2
SoopyV2-ee8f99633a66e12b1d0c6fb9daaedb2ba802b755.zip
small powder overlay fixes
-rw-r--r--features/specialMining/index.js15
-rw-r--r--metadata.json4
2 files changed, 12 insertions, 7 deletions
diff --git a/features/specialMining/index.js b/features/specialMining/index.js
index 97ec238..7f7a787 100644
--- a/features/specialMining/index.js
+++ b/features/specialMining/index.js
@@ -20,7 +20,7 @@ class PowderAndScatha extends Feature {
this.PowderOverlayElement = new HudTextElement()
.setText("")
.setToggleSetting(this.PowderElement)
- .setLocationSetting(new LocationSetting("Powder Mining Info Hud Location", "Allows you to edit the location of Powder Mining Info Hud", "powder_mining_hud_location", this, [10, 50, 1, 1]).requires(this.PowderElement).editTempText(`&b2x Powder: "&cINACTIVE"\n&aChests: &b32\n&bMithril: &d12,768\n&bGems: &d21,325`).contributor("EmeraldMerchant"));
+ .setLocationSetting(new LocationSetting("Powder Mining Info Hud Location", "Allows you to edit the location of Powder Mining Info Hud", "powder_mining_hud_location", this, [10, 50, 1, 1]).requires(this.PowderElement).editTempText(`&b2x Powder: &cINACTIVE\n&aChests: &b32\n&bMithril: &d12,768\n&bGems: &d21,325`).contributor("EmeraldMerchant"));
this.hudElements.push(this.PowderOverlayElement);
this.PowderOverlayElement.disableRendering()
@@ -156,8 +156,13 @@ class PowderAndScatha extends Feature {
spawnParticle(particle, type, event) {
if (this.inCrystalHollows && this.chestUnlockHelper.getValue() && particle.toString().startsWith("EntityCrit2FX,")) {
- this.chests.set(Math.floor(particle.getX()) + "," + Math.floor(particle.getY()) + "," + Math.floor(particle.getZ()), [Date.now(), particle.getX(), particle.getY(), particle.getZ()])
- cancel(event)
+ if (World.getBlockAt(particle.getX() + 1, particle.getY(), particle.getZ()).type.getID() === 54
+ || World.getBlockAt(particle.getX() - 1, particle.getY(), particle.getZ()).type.getID() === 54
+ || World.getBlockAt(particle.getX(), particle.getY(), particle.getZ() + 1).type.getID() === 54
+ || World.getBlockAt(particle.getX(), particle.getY(), particle.getZ() - 1).type.getID() === 54) {
+ this.chests.set(Math.floor(particle.getX()) + "," + Math.floor(particle.getY()) + "," + Math.floor(particle.getZ()), [Date.now(), particle.getX(), particle.getY(), particle.getZ()])
+ cancel(event)
+ }
}
}
@@ -182,11 +187,11 @@ class PowderAndScatha extends Feature {
Renderer.translate(x / scale, y / scale)
this.overlayLeft.forEach((l, i) => {
- Renderer.drawString(l, 0, 10 * i)
+ Renderer.drawStringWithShadow(l, 0, 10 * i)
})
this.overlayRight.forEach((l, i) => {
- Renderer.drawString(l, width - Renderer.getStringWidth(l), 10 * i)
+ Renderer.drawStringWithShadow(l, width - Renderer.getStringWidth(l), 10 * i)
})
Renderer.retainTransforms(false)
diff --git a/metadata.json b/metadata.json
index f5677b5..248ce9c 100644
--- a/metadata.json
+++ b/metadata.json
@@ -5,8 +5,8 @@
"entry": "index.js",
"description": "SoopyV2",
"name": "SoopyV2",
- "version": "2.1.144",
- "versionId": 271,
+ "version": "2.1.145",
+ "versionId": 272,
"requires": [
"soopyApis",
"soopyAddonsData",