From 92b6034f6bd4fdc134890f77dc0f7cf2ce6e66aa Mon Sep 17 00:00:00 2001 From: Hendrix-Shen Date: Mon, 29 Jul 2024 20:32:37 +0800 Subject: [PATCH] Fix #116 again Signed-off-by: Hendrix-Shen --- .../fastSwitchMasaConfigGui/MixinWidgetListBase.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/main/java/com/plusls/MasaGadget/mixin/mod_tweak/malilib/fastSwitchMasaConfigGui/MixinWidgetListBase.java b/src/main/java/com/plusls/MasaGadget/mixin/mod_tweak/malilib/fastSwitchMasaConfigGui/MixinWidgetListBase.java index 427ccc8..63b1ad1 100644 --- a/src/main/java/com/plusls/MasaGadget/mixin/mod_tweak/malilib/fastSwitchMasaConfigGui/MixinWidgetListBase.java +++ b/src/main/java/com/plusls/MasaGadget/mixin/mod_tweak/malilib/fastSwitchMasaConfigGui/MixinWidgetListBase.java @@ -21,6 +21,7 @@ package com.plusls.MasaGadget.mixin.mod_tweak.malilib.fastSwitchMasaConfigGui; import com.plusls.MasaGadget.api.gui.MasaGadgetDropdownList; +import com.plusls.MasaGadget.util.ModId; import fi.dy.masa.malilib.gui.GuiConfigsBase; import fi.dy.masa.malilib.gui.widgets.WidgetListBase; import fi.dy.masa.malilib.gui.widgets.WidgetListConfigOptions; @@ -30,6 +31,8 @@ import org.spongepowered.asm.mixin.injection.At; import org.spongepowered.asm.mixin.injection.Inject; import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; +import top.hendrixshen.magiclib.api.dependency.annotation.Dependencies; +import top.hendrixshen.magiclib.api.dependency.annotation.Dependency; import top.hendrixshen.magiclib.mixin.malilib.accessor.WidgetListConfigOptionsAccessor; import top.hendrixshen.magiclib.util.MiscUtil; @@ -42,6 +45,12 @@ /** * Reference to TweakerMore */ +@Dependencies( + require = { + @Dependency(ModId.malilib), + @Dependency(ModId.mod_menu) + } +) @Mixin(value = WidgetListBase.class, remap = false, priority = 1100) public abstract class MixinWidgetListBase> { // To make sure it only once gets rendered