diff --git a/src/main/kotlin/com/example/example_mod/ExampleMod.kt b/src/main/kotlin/com/example/example_mod/ExampleMod.kt index c973f5a..7dabc46 100644 --- a/src/main/kotlin/com/example/example_mod/ExampleMod.kt +++ b/src/main/kotlin/com/example/example_mod/ExampleMod.kt @@ -5,12 +5,10 @@ import org.quiltmc.qsl.base.api.entrypoint.ModInitializer import org.slf4j.Logger import org.slf4j.LoggerFactory -class ExampleMod : ModInitializer { - override fun onInitialize(mod: ModContainer?) { - LOGGER.info("Hello Quilt world from {}!", mod?.metadata()?.name()) - } +object ExampleMod : ModInitializer { + private val LOGGER: Logger = LoggerFactory.getLogger("Example Mod") - companion object { - val LOGGER: Logger = LoggerFactory.getLogger("Example Mod") + override fun onInitialize(mod: ModContainer) { + LOGGER.info("Hello Quilt world from {}!", mod.metadata()?.name()) } }