Browse Source

test: hotfix and logging for a crash

tags/v11.0.10
Shaun 1 year ago
parent
commit
906bdf7793
1 changed files with 11 additions and 0 deletions
  1. +11
    -0
      src/server/components/equipment.js

+ 11
- 0
src/server/components/equipment.js View File

@@ -281,6 +281,17 @@ module.exports = {
let itemId = eq[slot];
let item = inventory.findItem(itemId);

if (!item) {
console.log({
error: 'item not found',
itemId,
character: this.obj.name,
eq: this.eq
});

return;
}

let factions = item.factions;
if (!factions)
return;


Loading…
Cancel
Save