aboutsummaryrefslogtreecommitdiff
path: root/features/mining/index.js
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2021-12-06 16:29:41 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2021-12-06 16:29:41 +0800
commit6accfc8d22f8873040f347abaf45e9008686a203 (patch)
treef37fc08345f4eb162ce0e4d08c0c127d71552cbe /features/mining/index.js
parentc6582418087392ffc81ac49db7a5ad8988815863 (diff)
downloadSoopyV2-6accfc8d22f8873040f347abaf45e9008686a203.tar.gz
SoopyV2-6accfc8d22f8873040f347abaf45e9008686a203.tar.bz2
SoopyV2-6accfc8d22f8873040f347abaf45e9008686a203.zip
Make a utils thing at allows for human readable mappings
Diffstat (limited to 'features/mining/index.js')
-rw-r--r--features/mining/index.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/features/mining/index.js b/features/mining/index.js
index 214ffa7..b89d8e6 100644
--- a/features/mining/index.js
+++ b/features/mining/index.js
@@ -1,6 +1,7 @@
/// <reference types="../../../CTAutocomplete" />
/// <reference lib="es2015" />
import Feature from "../../featureClass/class";
+import { m } from "../../mappings/mappings";
import * as stringUtils from "../../utils/stringUtils";
import * as utils from "../../utils/utils"
import HudTextElement from "../hud/HudTextElement";
@@ -76,13 +77,13 @@ class Mining extends Feature {
if(unlockedGems){
- if(unlockedGems.func_74745_c() === 0){
+ if(unlockedGems[m.tagCount]() === 0){
utils.addLore(item, ChatLib.addColor("&d&lGemstones Unlocked: &f"), ChatLib.addColor("&cNone!"))
}else{
let gemstoneString = ""
- for(let i = 0; i < unlockedGems.func_74745_c(); i++){
- let gem = String(unlockedGems.func_150307_f(i)).split("_")
+ for(let i = 0; i < unlockedGems[m.tagCount](); i++){
+ let gem = String(unlockedGems[m.getStringTagAt](i)).split("_")
let name = stringUtils.firstLetterCapital(gem[0].toLowerCase())
@@ -132,7 +133,7 @@ class Mining extends Feature {
if(this.FeatureManager.features["dataLoader"].class.area === "Crystal Hollows" && this.FeatureManager.features["dataLoader"].class.areaFine === "Khazad-dm"){
this.balEntity = undefined
- World.getAllEntities().filter(a=>a.getName()==="Magma Cube").filter(a=>a.getEntity().func_70809_q() > 10).forEach((bal)=>{
+ World.getAllEntities().filter(a=>a.getName()==="Magma Cube").filter(a=>a.getEntity()[m.getSlimeSize]() > 10).forEach((bal)=>{
//Bal found
this.balEntity = bal
})