Este site funciona melhor com JavaScript.
Página inicial
Explorar
Ajuda
Cadastrar
Acessar
gitlord
/
isleward
espelhamento de
https://gitlab.com/Isleward/isleward.git
Observar
1
Favorito
0
Fork
0
Código
Issues
0
Versões
203
Wiki
Atividade
Ver código fonte
fix: item effects that can't be found will now simply be removed withou crashing the server
tags/v0.12.0
Shaun
1 ano atrás
pai
4635835848
commit
aa7e70e367
1 arquivos alterados
com
3 adições
e
0 exclusões
Visão dividida
Opções de diferenças
Mostrar estatísticas
Baixar arquivo de patch
Baixar arquivo de diferenças
+3
-0
src/server/components/inventory.js
+ 3
- 0
src/server/components/inventory.js
Ver arquivo
@@ -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) {
Escrever
Pré-visualização
Carregando…
Cancelar
Salvar