Update db-log-addOn.js

This commit is contained in:
Skillet 2023-03-20 12:39:53 -04:00 committed by GitHub
parent b2a7c7c7a2
commit a1fd20138b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -96,7 +96,7 @@ export default class DBLogPlayerTime extends DBLog {
this.seeding = ServerState.live;
}
} else {
if(this.currentLayerRcon.level.includes("Seed")){
if(this.server.currentLayerRcon.layer.includes("Seed")){
console.log('starting to seeding');
this.seeding = ServerState.seeding;
} else {
@ -235,7 +235,7 @@ export default class DBLogPlayerTime extends DBLog {
await this.updateCurrentTimeState(curDateTime, this.seeding, ServerState.live);
}
} else {
if(this.currentLayerRcon.level.includes("Seed")){
if(this.server.currentLayerRcon.layer.includes("Seed")){
console.log('switching to seeding');
await this.updateCurrentTimeState(curDateTime, this.seeding, ServerState.seeding);
} else {