aboutsummaryrefslogtreecommitdiff
path: root/features/globalSettings
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-08-28 17:57:03 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-08-28 17:57:03 +0800
commitf4e50e0a4e21f9deba3f931d76d522a1014c8a41 (patch)
tree77bc19075a805330df8ef0adbe2349f5469b8b7d /features/globalSettings
parentf34d03e2de2360d4415cad02d8bdc2dc06f1ffcd (diff)
downloadSoopyV2-f4e50e0a4e21f9deba3f931d76d522a1014c8a41.tar.gz
SoopyV2-f4e50e0a4e21f9deba3f931d76d522a1014c8a41.tar.bz2
SoopyV2-f4e50e0a4e21f9deba3f931d76d522a1014c8a41.zip
small fixes
Diffstat (limited to 'features/globalSettings')
-rw-r--r--features/globalSettings/index.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/features/globalSettings/index.js b/features/globalSettings/index.js
index d97da1b..a31631e 100644
--- a/features/globalSettings/index.js
+++ b/features/globalSettings/index.js
@@ -535,6 +535,8 @@ class GlobalSettings extends Feature {
updateItemLores() {
if (!this.itemWorth.getValue()) return;
+ if (!Player.getInventory()) return
+
let items = [...Player.getInventory().getItems(), ...Player.getContainer().getItems()]
items.forEach(i => {