aboutsummaryrefslogtreecommitdiff
path: root/features/globalSettings
diff options
context:
space:
mode:
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 => {