diff --git a/scripts/src/lib/template/templates/entrypoint/Entrypoint.java.eta b/scripts/src/lib/template/templates/entrypoint/Entrypoint.java.eta index e2b7a585..532f97c5 100644 --- a/scripts/src/lib/template/templates/entrypoint/Entrypoint.java.eta +++ b/scripts/src/lib/template/templates/entrypoint/Entrypoint.java.eta @@ -13,8 +13,10 @@ public class <%= it.className %> implements ModInitializer { // It is considered best practice to use your mod id as the logger's name. // That way, it's clear which mod wrote info, warnings, and errors. public static final String MOD_ID = "<%= it.modid %>"; -<% if (it.slf4j) { %> public static final Logger LOGGER = LoggerFactory.getLogger("<%= MOD_ID %>"); -<% } else { %> public static final Logger LOGGER = LogManager.getLogger("<%= MOD_ID %>");<% } %> +<% if (it.slf4j) { %> + public static final Logger LOGGER = LoggerFactory.getLogger(MOD_ID); +<% } else { %> + public static final Logger LOGGER = LogManager.getLogger(MOD_ID);<% } %> @Override public void onInitialize() { // This code runs as soon as Minecraft is in a mod-load-ready state.