Fix log util not working with error and warn types
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user