Update db-log-addOn.js

This commit is contained in:
Skillet 2023-03-09 16:38:56 -05:00 committed by GitHub
parent 2f3165fc1e
commit fb0d48f7cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -87,6 +87,7 @@ export default class DBLogPlayerTime extends DBLog {
async mount() {
console.log('Mounting db-log');
if(this.server.currentLayer){
if(this.server.currentLayer.gamemode === "Seed"){
console.log('switching to seeding');
this.seeding = ServerState.seeding;
@ -94,6 +95,7 @@ export default class DBLogPlayerTime extends DBLog {
console.log('switching to Live');
this.seeding = ServerState.live;
}
}
await super.mount();
console.log('finished mounting db-log');
this.server.on('PLAYER_CONNECTED', this.onPlayerConnected);