From a1fd20138bf131f61251bc3447d606940187c1b1 Mon Sep 17 00:00:00 2001 From: Skillet Date: Mon, 20 Mar 2023 12:39:53 -0400 Subject: [PATCH] Update db-log-addOn.js --- squadjsPlugins/db-log-addOn.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/squadjsPlugins/db-log-addOn.js b/squadjsPlugins/db-log-addOn.js index 7cb4ac5..83b1c96 100644 --- a/squadjsPlugins/db-log-addOn.js +++ b/squadjsPlugins/db-log-addOn.js @@ -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 {