From 59914a8efc0e5001a8397322622d564b9cfbcdac Mon Sep 17 00:00:00 2001 From: EmeraldMerchant <96396730+EmeraldMerchant@users.noreply.github.com> Date: Thu, 11 Aug 2022 04:23:23 +0800 Subject: remove unused function --- features/globalSettings/index.js | 28 ---------------------------- 1 file changed, 28 deletions(-) (limited to 'features') diff --git a/features/globalSettings/index.js b/features/globalSettings/index.js index 1430824..30ba992 100644 --- a/features/globalSettings/index.js +++ b/features/globalSettings/index.js @@ -422,34 +422,6 @@ class GlobalSettings extends Feature { } } - updateItemPrices() { - if (!this.itemWorth.getValue()) return; - - [...Player.getInventory().getItems(), ...Player.getContainer().getItems()].forEach(i => { - let uuid = getSBUUID(i) - if (!uuid) return - - let a = socketConnection.itemPricesCache.get(uuid) - - if (!a && socketConnection.itemPricesCache2.get(uuid)) { - a = socketConnection.itemPricesCache2.get(uuid) - socketConnection.itemPricesCache.set(uuid, a) - } - - if (a) { - addLore(i, "§eWorth: ", "§6$" + numberWithCommas(Math.round(a))) - return - } - - if (this.requestingPrices.has(uuid)) return - - this.requestingPrices.add(uuid) - - let json = i.getNBT().toObject() - socketConnection.requestItemPrice(json, uuid) - }) - } - // renderWebpage() { // let url = this.getField(Client.currentGui.get(), f.linkText) -- cgit