From 6accfc8d22f8873040f347abaf45e9008686a203 Mon Sep 17 00:00:00 2001 From: Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> Date: Mon, 6 Dec 2021 16:29:41 +0800 Subject: Make a utils thing at allows for human readable mappings --- features/mining/index.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'features/mining') 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 @@ /// /// 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 }) -- cgit