fix cause of IllegalAccessException
This commit is contained in:
parent
a4f7f39196
commit
1edbf0204d
1 changed files with 4 additions and 3 deletions
|
@ -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")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue