本網站在啟用 JavaScript 的情況下可以運作的更好。
首頁
探索
說明
註冊
登入
gitlord
/
isleward
镜像来自
https://gitlab.com/Isleward/isleward.git
關注
1
收藏
0
複製
0
程式碼
問題
0
版本發佈
203
Wiki
活動
瀏覽代碼
fix: item effects that can't be found will now simply be removed withou crashing the server
tags/v0.12.0
Shaun
1 年之前
父節點
4635835848
當前提交
aa7e70e367
共有
1 個檔案被更改
,包括
3 行新增
和
0 行删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+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) {
Write
Preview
Loading…
取消
儲存