fix logging config not taking effect

This commit is contained in:
Flemmli97 2020-11-28 18:28:10 +01:00
parent 39c28b7661
commit c6b5399488

View File

@ -35,10 +35,12 @@ public class Flan implements ModInitializer {
}
public static void log(String msg, Object... o){
logger.info(msg, o);
if(ConfigHandler.config.log)
logger.info(msg, o);
}
public static void debug(String msg, Object... o){
logger.debug(msg, o);
if(ConfigHandler.config.log)
logger.debug(msg, o);
}
}