From 2c7878eedb699a9d0658f640f1ec59fe3270fed2 Mon Sep 17 00:00:00 2001 From: MrMelon54 Date: Thu, 4 Jul 2024 21:47:41 +0100 Subject: [PATCH] No reason for this to have config --- .../mrmelon54/infrastructury/ConfigStructure.java | 10 ---------- .../mrmelon54/infrastructury/Infrastructury.java | 6 ------ .../infrastructury/ModMenuIntegration.java | 14 -------------- fabric/src/main/resources/fabric.mod.json | 3 --- quilt/src/main/resources/quilt.mod.json | 3 --- 5 files changed, 36 deletions(-) delete mode 100644 common/src/main/java/com/mrmelon54/infrastructury/ConfigStructure.java delete mode 100644 common/src/main/java/com/mrmelon54/infrastructury/ModMenuIntegration.java diff --git a/common/src/main/java/com/mrmelon54/infrastructury/ConfigStructure.java b/common/src/main/java/com/mrmelon54/infrastructury/ConfigStructure.java deleted file mode 100644 index 0b20841..0000000 --- a/common/src/main/java/com/mrmelon54/infrastructury/ConfigStructure.java +++ /dev/null @@ -1,10 +0,0 @@ -package com.mrmelon54.infrastructury; - -import me.shedaniel.autoconfig.ConfigData; -import me.shedaniel.autoconfig.annotation.Config; - -@Config(name = "infrastructury") -@Config.Gui.Background("minecraft:textures/block/dirt.png") -public class ConfigStructure implements ConfigData { - public boolean modeEnabled = true; -} diff --git a/common/src/main/java/com/mrmelon54/infrastructury/Infrastructury.java b/common/src/main/java/com/mrmelon54/infrastructury/Infrastructury.java index b03c3b2..8773e0d 100644 --- a/common/src/main/java/com/mrmelon54/infrastructury/Infrastructury.java +++ b/common/src/main/java/com/mrmelon54/infrastructury/Infrastructury.java @@ -11,14 +11,8 @@ public class Infrastructury { public static final String MOD_ID = "infrastructury"; - public static ConfigStructure CONFIG = AutoConfig.register(ConfigStructure.class, JanksonConfigSerializer::new).get(); public static void init() { - registerConfigScreen((mc, screen) -> createConfigScreen(screen).get()); - } - - public static Supplier createConfigScreen(Screen screen) { - return AutoConfig.getConfigScreen(ConfigStructure.class, screen); } public static boolean showDebugScreen() { diff --git a/common/src/main/java/com/mrmelon54/infrastructury/ModMenuIntegration.java b/common/src/main/java/com/mrmelon54/infrastructury/ModMenuIntegration.java deleted file mode 100644 index a4b2c55..0000000 --- a/common/src/main/java/com/mrmelon54/infrastructury/ModMenuIntegration.java +++ /dev/null @@ -1,14 +0,0 @@ -package com.mrmelon54.infrastructury; - -import com.terraformersmc.modmenu.api.ConfigScreenFactory; -import com.terraformersmc.modmenu.api.ModMenuApi; -import net.fabricmc.api.EnvType; -import net.fabricmc.api.Environment; - -@Environment(EnvType.CLIENT) -public class ModMenuIntegration implements ModMenuApi { - @Override - public ConfigScreenFactory getModConfigScreenFactory() { - return parent -> Infrastructury.createConfigScreen(parent).get(); - } -} diff --git a/fabric/src/main/resources/fabric.mod.json b/fabric/src/main/resources/fabric.mod.json index 3ef1126..e29786f 100644 --- a/fabric/src/main/resources/fabric.mod.json +++ b/fabric/src/main/resources/fabric.mod.json @@ -18,9 +18,6 @@ "entrypoints": { "main": [ "com.mrmelon54.infrastructury.fabric.InfrastructuryFabric" - ], - "modmenu": [ - "com.mrmelon54.infrastructury.ModMenuIntegration" ] }, "mixins": [ diff --git a/quilt/src/main/resources/quilt.mod.json b/quilt/src/main/resources/quilt.mod.json index 07bc23f..32c45ac 100644 --- a/quilt/src/main/resources/quilt.mod.json +++ b/quilt/src/main/resources/quilt.mod.json @@ -26,9 +26,6 @@ "entrypoints": { "init": [ "com.mrmelon54.infrastructury.quilt.InfrastructuryQuilt" - ], - "modmenu": [ - "com.mrmelon54.infrastructury.ModMenuIntegration" ] }, "depends": [