This website works better with JavaScript.
Почетна
Преглед
Помоћ
Регистрација
Пријавите Се
gitlord
/
isleward
огледало од
https://gitlab.com/Isleward/isleward.git
Прати
1
Волим
0
Креирај огранак
0
Код
Дискусије
0
Издања
203
Вики
Activity
Преглед изворни кода
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…
Откажи
Сачувај