fix cause of IllegalAccessException

This commit is contained in:
Lilly Rosaline 2022-12-08 23:37:11 -06:00 committed by GitHub
parent a4f7f39196
commit 1edbf0204d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,10 +5,11 @@ import org.quiltmc.qsl.base.api.entrypoint.ModInitializer
import org.slf4j.Logger import org.slf4j.Logger
import org.slf4j.LoggerFactory import org.slf4j.LoggerFactory
object ExampleMod : ModInitializer { class ExampleMod : ModInitializer {
private val LOGGER: Logger = LoggerFactory.getLogger("Example Mod")
override fun onInitialize(mod: ModContainer) { override fun onInitialize(mod: ModContainer) {
LOGGER.info("Hello Quilt world from {}!", mod.metadata()?.name()) LOGGER.info("Hello Quilt world from {}!", mod.metadata()?.name())
} }
companion object {
private val LOGGER: Logger = LoggerFactory.getLogger("Example Mod")
}
} }