Update db-log-addOn.js

This commit is contained in:
Skillet 2023-03-11 17:14:08 -05:00 committed by GitHub
parent fb0d48f7cd
commit b91d66f5b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -217,12 +217,14 @@ export default class DBLogPlayerTime extends DBLog {
console.log(info);
const curDateTime = info.time;
if(info.layer.gamemode === 'Seed'){
console.log('switching to seeding');
await this.updateCurrentTimeState(curDateTime, this.seeding, ServerState.seeding);
} else {
console.log('switching to Live');
await this.updateCurrentTimeState(curDateTime, this.seeding, ServerState.live);
if(info.layer){
if(info.layer.gamemode === 'Seed'){
console.log('switching to seeding');
await this.updateCurrentTimeState(curDateTime, this.seeding, ServerState.seeding);
} else {
console.log('switching to Live');
await this.updateCurrentTimeState(curDateTime, this.seeding, ServerState.live);
}
}
}