From d06e9d353d7232f2e84835e5ff988c319d2fb6b1 Mon Sep 17 00:00:00 2001 From: Skillet Date: Mon, 8 May 2023 12:43:11 -0400 Subject: [PATCH] Update db-log-addOn.js --- db-log-addOn.js | 1 + 1 file changed, 1 insertion(+) diff --git a/db-log-addOn.js b/db-log-addOn.js index a89a981..66831cd 100644 --- a/db-log-addOn.js +++ b/db-log-addOn.js @@ -123,6 +123,7 @@ export default class DBLogPlayerTime extends DBLog { ); console.log('last tick found:', lastTickTime); + if(!lastTickTime) return; const lastServerDate = lastTickTime.time; const lastServerTime = lastServerDate.getFullYear() + '-' + (lastServerDate.getMonth() + 1) + '-' + lastServerDate.getDate() + ' ' + lastServerDate.getHours() + ':' + lastServerDate.getMinutes() + ':' + lastServerDate.getSeconds(); console.log('last time found:', lastServerTime);