Merge branch 'kotlin-1.10' into kotlin-1.12
This commit is contained in:
@@ -24,6 +24,8 @@ import java.util.*
|
|||||||
name = BetterFoliageMod.MOD_NAME,
|
name = BetterFoliageMod.MOD_NAME,
|
||||||
acceptedMinecraftVersions = BetterFoliageMod.MC_VERSIONS,
|
acceptedMinecraftVersions = BetterFoliageMod.MC_VERSIONS,
|
||||||
guiFactory = BetterFoliageMod.GUI_FACTORY,
|
guiFactory = BetterFoliageMod.GUI_FACTORY,
|
||||||
|
dependencies = "after:forgelin",
|
||||||
|
modLanguageAdapter = "net.shadowfacts.forgelin.KotlinAdapter",
|
||||||
clientSideOnly = true
|
clientSideOnly = true
|
||||||
)
|
)
|
||||||
object BetterFoliageMod {
|
object BetterFoliageMod {
|
||||||
@@ -40,14 +42,10 @@ object BetterFoliageMod {
|
|||||||
|
|
||||||
var config: Configuration? = null
|
var config: Configuration? = null
|
||||||
|
|
||||||
@JvmStatic
|
init {
|
||||||
@Mod.InstanceFactory
|
|
||||||
// the fun never stops with the fun factory! :)
|
|
||||||
fun factory(): BetterFoliageMod {
|
|
||||||
// inject pack into default list at construction time to get domains enumerated
|
// inject pack into default list at construction time to get domains enumerated
|
||||||
// there's no 2nd resource reload pass anymore
|
// there's no 2nd resource reload pass anymore
|
||||||
Client.generatorPack.inject()
|
Client.generatorPack.inject()
|
||||||
return this
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Mod.EventHandler
|
@Mod.EventHandler
|
||||||
|
|||||||
Reference in New Issue
Block a user