summaryrefslogtreecommitdiff
path: root/src/main/kotlin/UltraNotifierEntryPoint.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/UltraNotifierEntryPoint.kt')
-rw-r--r--src/main/kotlin/UltraNotifierEntryPoint.kt30
1 files changed, 17 insertions, 13 deletions
diff --git a/src/main/kotlin/UltraNotifierEntryPoint.kt b/src/main/kotlin/UltraNotifierEntryPoint.kt
index 34525ea..67dd566 100644
--- a/src/main/kotlin/UltraNotifierEntryPoint.kt
+++ b/src/main/kotlin/UltraNotifierEntryPoint.kt
@@ -1,25 +1,29 @@
package moe.nea.ultranotifier
//#if FORGE
-//$$ import net.minecraftforge.fml.common.Mod
+//$$import net.minecraftforge.fml.common.Mod
//$$
//#if MC == 10809
-//$$ import net.minecraftforge.fml.common.event.FMLInitializationEvent
-//$$ @Mod(modid = Constants.MOD_ID, version = Constants.VERSION, useMetadata = true)
+//$$import net.minecraftforge.fml.common.event.FMLInitializationEvent
+//$$@Mod(modid = Constants.MOD_ID, version = Constants.VERSION, useMetadata = true)
//#else
-//$$ @Mod(Constants.MOD_ID)
+//$$@Mod(Constants.MOD_ID)
//#endif
-//$$ class UltraNotifierEntryPoint {
-//$$ @Mod.EventHandler
-//$$ fun onInit(@Suppress("UNUSED_PARAMETER") event: FMLInitializationEvent) {
-//$$ UltraNotifier.onStartup()
-//$$ }
-//$$ }
+//$$class UltraNotifierEntryPoint {
+//#if MC == 10809
+//$$ @Mod.EventHandler
+//$$ fun onInit(@Suppress("UNUSED_PARAMETER") event: FMLInitializationEvent) {
+//#else
+//$$ init {
+//#endif
+//$$ UltraNotifier.onStartup()
+//$$ }
+//$$}
//#else
import net.fabricmc.api.ModInitializer
object UltraNotifierEntryPoint : ModInitializer {
- override fun onInitialize() {
- UltraNotifier.onStartup()
- }
+ override fun onInitialize() {
+ UltraNotifier.onStartup()
+ }
}
//#endif