Fix offline not effecting private world time bug, maybe?

This commit is contained in:
Natsumi
2020-12-13 22:46:26 +13:00
committed by pypy
parent b973cdfe2d
commit 66cc32cf92

View File

@@ -4080,6 +4080,7 @@ import gameLogService from './service/gamelog.js'
console.log('^update offline^');
}
if ((ctx.ref.$online_for == '') && (ctx.state == 'online')) {
ctx.ref.$location_at = Date.now();
ctx.ref.$online_for = Date.now();
ctx.ref.$offline_for = '';
console.log('^update online^');