diff options
Diffstat (limited to 'features/globalSettings')
-rw-r--r-- | features/globalSettings/index.js | 2 |
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 => { |