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
bug
#2003
: When updating player.level in the main thread, we now also update the stats component
(cherry picked from commit
f6fe6c2f32
)
tags/v0.13.0.1^0
Shaun
6 months ago
committed by
Big Bad Waffle
parent
8fed69c99d
commit
cf1e9e45d6
1 changed files
with
2 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-0
src/server/objects/objects.js
+ 2
- 0
src/server/objects/objects.js
View File
@@ -301,6 +301,8 @@ module.exports = {
if (obj.level) {
await leaderboard.setLevel(player.name, obj.level);
player.components.find(c => c.type === 'stats').values.level = obj.level;
cons.emit('events', {
onGetMessages: [{
messages: [{
Write
Preview
Loading…
Cancel
Save