소스 검색

fix: item effects that can't be found will now simply be removed withou crashing the server

tags/v0.12.0
Shaun 1 년 전
부모
커밋
aa7e70e367
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. +3
    -0
      src/server/components/inventory.js

+ 3
- 0
src/server/components/inventory.js 파일 보기

@@ -407,9 +407,12 @@ module.exports = {
e.text = effectModule.events.onGetText(item, e);
} catch (error) {
_.log(`Effect not found: ${e.type}`);
_.log(error);
}
}
});

item.effects.spliceWhere(e => !e.events);
}

if (!item.has('pos') && !item.eq) {


불러오는 중...
취소
저장