Il sito funziona meglio con JavaScript.
Home
Esplora
Aiuto
Registrati
Accedi
gitlord
/
isleward
mirror da
https://gitlab.com/Isleward/isleward.git
Segui
1
Vota
0
Forka
0
Codice
Problemi
0
Rilasci
203
Wiki
Attività
Sfoglia il codice sorgente
fix: item effects that can't be found will now simply be removed withou crashing the server
tags/v0.12.0
Shaun
1 anno fa
parent
4635835848
commit
aa7e70e367
1 ha cambiato i file
con
3 aggiunte
e
0 eliminazioni
Visualizzazione separata
Opzioni Diff
Mostra statistiche
Scarica il file Patch
Scarica il file Diff
+3
-0
src/server/components/inventory.js
+ 3
- 0
src/server/components/inventory.js
Vedi File
@@ -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) {
Scrivi
Anteprima
Caricamento…
Annulla
Salva