diff options
Diffstat (limited to 'fabric')
5 files changed, 16 insertions, 24 deletions
diff --git a/fabric/build.gradle.kts b/fabric/build.gradle.kts index 27900f6..1e39832 100644 --- a/fabric/build.gradle.kts +++ b/fabric/build.gradle.kts @@ -9,6 +9,11 @@ architectury { loom { accessWidenerPath.set(project(":common").loom.accessWidenerPath) + launches { + named("client") { + property("fabric.log.level", "info") + } + } } /** diff --git a/fabric/src/main/kotlin/moe/nea/notenoughupdates/FabricMain.kt b/fabric/src/main/kotlin/moe/nea/notenoughupdates/FabricMain.kt new file mode 100644 index 0000000..918100b --- /dev/null +++ b/fabric/src/main/kotlin/moe/nea/notenoughupdates/FabricMain.kt @@ -0,0 +1,10 @@ +package moe.nea.notenoughupdates + +import moe.nea.notenoughupdates.NotEnoughUpdates.init +import net.fabricmc.api.ModInitializer + +class FabricMain : ModInitializer { + override fun onInitialize() { + init() + } +} diff --git a/fabric/src/main/kotlin/net/examplemod/fabric/ExampleExpectPlatformImpl.kt b/fabric/src/main/kotlin/net/examplemod/fabric/ExampleExpectPlatformImpl.kt deleted file mode 100644 index 8982dfc..0000000 --- a/fabric/src/main/kotlin/net/examplemod/fabric/ExampleExpectPlatformImpl.kt +++ /dev/null @@ -1,13 +0,0 @@ -package net.examplemod.fabric - -import net.fabricmc.loader.api.FabricLoader -import java.nio.file.Path -import net.examplemod.ExampleExpectPlatform - -object ExampleExpectPlatformImpl { - /** - * This is our actual method to [ExampleExpectPlatform.getConfigDirectory]. - */ - @JvmStatic - fun getConfigDirectory(): Path = FabricLoader.getInstance().configDir -}
\ No newline at end of file diff --git a/fabric/src/main/kotlin/net/examplemod/fabric/ExampleModFabric.kt b/fabric/src/main/kotlin/net/examplemod/fabric/ExampleModFabric.kt deleted file mode 100644 index c11491c..0000000 --- a/fabric/src/main/kotlin/net/examplemod/fabric/ExampleModFabric.kt +++ /dev/null @@ -1,10 +0,0 @@ -package net.examplemod.fabric - -import net.examplemod.ExampleMod.init -import net.fabricmc.api.ModInitializer - -class ExampleModFabric : ModInitializer { - override fun onInitialize() { - init() - } -}
\ No newline at end of file diff --git a/fabric/src/main/resources/fabric.mod.json b/fabric/src/main/resources/fabric.mod.json index 21eaec0..3ff8349 100644 --- a/fabric/src/main/resources/fabric.mod.json +++ b/fabric/src/main/resources/fabric.mod.json @@ -16,7 +16,7 @@ "environment": "client", "entrypoints": { "main": [ - "net.examplemod.fabric.ExampleModFabric" + "moe.nea.notenoughupdates.FabricMain" ], "rei": [ "moe.nea.notenoughupdates.rei.NEUReiPlugin" |