Fix log util not working with error and warn types

This commit is contained in:
Vortrex
2022-05-15 04:21:45 -05:00
parent 4cd3de4876
commit 9b9c1bb608

View File

@@ -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;