diff --git a/common/src/main/java/com/kyanite/deeperdarker/config/DDClientConfig.java b/common/src/main/java/com/kyanite/deeperdarker/config/DDClientConfig.java index 379d6e104..97d229ab4 100644 --- a/common/src/main/java/com/kyanite/deeperdarker/config/DDClientConfig.java +++ b/common/src/main/java/com/kyanite/deeperdarker/config/DDClientConfig.java @@ -1,11 +1,9 @@ package com.kyanite.deeperdarker.config; -import com.kyanite.paragon.api.ConfigOption; import com.kyanite.paragon.api.enums.ConfigSide; import com.kyanite.paragon.api.interfaces.Config; public class DDClientConfig implements Config { - public static final ConfigOption SHOW_START_SCREEN = new ConfigOption<>("show_start_screen", false); @Override public ConfigSide configSide() { diff --git a/common/src/main/java/com/kyanite/deeperdarker/mixin/client/MinecraftMixin.java b/common/src/main/java/com/kyanite/deeperdarker/mixin/client/MinecraftMixin.java deleted file mode 100644 index 1851b18c4..000000000 --- a/common/src/main/java/com/kyanite/deeperdarker/mixin/client/MinecraftMixin.java +++ /dev/null @@ -1,26 +0,0 @@ -package com.kyanite.deeperdarker.mixin.client; - -import com.kyanite.deeperdarker.client.ui.StartScreen; -import com.kyanite.deeperdarker.config.DDClientConfig; -import com.kyanite.deeperdarker.miscellaneous.DDUtils; -import net.minecraft.client.Minecraft; -import net.minecraft.client.gui.screens.Screen; -import net.minecraft.client.main.GameConfig; -import org.jetbrains.annotations.Nullable; -import org.spongepowered.asm.mixin.Mixin; -import org.spongepowered.asm.mixin.Shadow; -import org.spongepowered.asm.mixin.injection.At; -import org.spongepowered.asm.mixin.injection.Inject; -import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; - -@Mixin(Minecraft.class) -public abstract class MinecraftMixin { - @Shadow public abstract void setScreen(@Nullable Screen screen); - - @Inject(method = "*", at = @At("TAIL")) - private void init(GameConfig args, CallbackInfo info) { - if(DDUtils.isConnected() && DDClientConfig.SHOW_START_SCREEN.get() == true) { - this.setScreen(new StartScreen()); - } - } -} diff --git a/common/src/main/resources/deeperdarker-common.mixins.json b/common/src/main/resources/deeperdarker-common.mixins.json index 87d466c9f..027dbf3ec 100644 --- a/common/src/main/resources/deeperdarker-common.mixins.json +++ b/common/src/main/resources/deeperdarker-common.mixins.json @@ -16,7 +16,6 @@ ], "client": [ "client.WardenAnimations", - "client.MinecraftMixin", "client.PhantomRendererMixin" ], "injectors": {