From 7283415885c8b828480674e4494d01751b8f4458 Mon Sep 17 00:00:00 2001 From: JFronny <33260128+JFronny@users.noreply.github.com> Date: Thu, 16 Jul 2020 12:10:50 +0200 Subject: [PATCH] Mark as client-only --- src/main/java/io/gitlab/jfronny/translater/ModInit.java | 5 +++-- src/main/resources/fabric.mod.json | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/main/java/io/gitlab/jfronny/translater/ModInit.java b/src/main/java/io/gitlab/jfronny/translater/ModInit.java index b009894..6fcc953 100644 --- a/src/main/java/io/gitlab/jfronny/translater/ModInit.java +++ b/src/main/java/io/gitlab/jfronny/translater/ModInit.java @@ -2,12 +2,13 @@ package io.gitlab.jfronny.translater; import me.sargunvohra.mcmods.autoconfig1u.AutoConfig; import me.sargunvohra.mcmods.autoconfig1u.serializer.JanksonConfigSerializer; +import net.fabricmc.api.ClientModInitializer; import net.fabricmc.api.ModInitializer; import org.apache.logging.log4j.Level; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; -public class ModInit implements ModInitializer { +public class ModInit implements ClientModInitializer { public static final String MOD_NAME = "translater"; public static final String MOD_ID = "translater"; private static final Logger logger = LogManager.getFormatterLogger(MOD_ID); @@ -27,7 +28,7 @@ public class ModInit implements ModInitializer { } @Override - public void onInitialize() { + public void onInitializeClient() { Log("Loaded translater"); } diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json index 13a01b1..6cf0a61 100644 --- a/src/main/resources/fabric.mod.json +++ b/src/main/resources/fabric.mod.json @@ -17,7 +17,7 @@ "environment": "*", "entrypoints": { - "main": [ + "client": [ "io.gitlab.jfronny.translater.ModInit" ], "modmenu": [ @@ -39,6 +39,7 @@ "modupdater": { "strategy": "curseforge", "projectID": 394823 - } + }, + "modmenu:clientsideOnly": true } }