mirror of
https://github.com/AsgardEternal/SquadJSDocker.git
synced 2025-01-02 09:49:19 -06:00
Update db-log-addOn.js
This commit is contained in:
parent
fb0d48f7cd
commit
b91d66f5b8
@ -217,12 +217,14 @@ export default class DBLogPlayerTime extends DBLog {
|
|||||||
|
|
||||||
console.log(info);
|
console.log(info);
|
||||||
const curDateTime = info.time;
|
const curDateTime = info.time;
|
||||||
if(info.layer.gamemode === 'Seed'){
|
if(info.layer){
|
||||||
console.log('switching to seeding');
|
if(info.layer.gamemode === 'Seed'){
|
||||||
await this.updateCurrentTimeState(curDateTime, this.seeding, ServerState.seeding);
|
console.log('switching to seeding');
|
||||||
} else {
|
await this.updateCurrentTimeState(curDateTime, this.seeding, ServerState.seeding);
|
||||||
console.log('switching to Live');
|
} else {
|
||||||
await this.updateCurrentTimeState(curDateTime, this.seeding, ServerState.live);
|
console.log('switching to Live');
|
||||||
|
await this.updateCurrentTimeState(curDateTime, this.seeding, ServerState.live);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user