This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
gitlord
/
isleward
mirror of
https://gitlab.com/Isleward/isleward.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
203
Wiki
Activity
Browse Source
fix: item effects that can't be found will now simply be removed withou crashing the server
tags/v0.12.0
Shaun
1 year ago
parent
4635835848
commit
aa7e70e367
1 changed files
with
3 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-0
src/server/components/inventory.js
+ 3
- 0
src/server/components/inventory.js
View 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) {
Write
Preview
Loading…
Cancel
Save