aboutsummaryrefslogtreecommitdiff
path: root/features
diff options
context:
space:
mode:
authorEmeraldMerchant <96396730+EmeraldMerchant@users.noreply.github.com>2022-08-11 04:23:23 +0800
committerGitHub <noreply@github.com>2022-08-11 04:23:23 +0800
commit59914a8efc0e5001a8397322622d564b9cfbcdac (patch)
tree540887856acf89f5b0d3ffca324328b481eedc9e /features
parent98e6000939b1fdded936f46969bcea04c975c993 (diff)
downloadSoopyV2-59914a8efc0e5001a8397322622d564b9cfbcdac.tar.gz
SoopyV2-59914a8efc0e5001a8397322622d564b9cfbcdac.tar.bz2
SoopyV2-59914a8efc0e5001a8397322622d564b9cfbcdac.zip
remove unused function
Diffstat (limited to 'features')
-rw-r--r--features/globalSettings/index.js28
1 files changed, 0 insertions, 28 deletions
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)