feat: allow format directly into log

This commit is contained in:
əlemi 2023-03-18 22:09:22 +01:00
parent ef1b212fd1
commit fa10646d8f
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -66,6 +66,10 @@ public class Boscovicino implements ICommons {
MinecraftForge.EVENT_BUS.register(this); MinecraftForge.EVENT_BUS.register(this);
} }
public static void log(String message, Object... args) {
log(String.format(message, args));
}
public static void log(String message) { public static void log(String message) {
LOGGER.info(message); LOGGER.info(message);
if (MC.player != null) { if (MC.player != null) {