From 9b9c1bb608c46a2e5ecee059b9e53b09fd7aed5c Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Sun, 15 May 2022 04:21:45 -0500 Subject: [PATCH] Fix log util not working with error and warn types --- scripts/shared/utilities.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/shared/utilities.js b/scripts/shared/utilities.js index 337d1142..e9bb19a3 100644 --- a/scripts/shared/utilities.js +++ b/scripts/shared/utilities.js @@ -1361,7 +1361,7 @@ function getDistance(vec1, vec2) { function logToConsole(tempLogLevel, text) { text = removeColoursInMessage(text); - if(hasBitFlag(logLevel, tempLogLevel)) { + if(hasBitFlag(logLevel|LOG_WARN|LOG_ERROR, tempLogLevel)) { if(tempLogLevel & LOG_ERROR) { consoleError(text); return true;