Skip to content

Commit

Permalink
Fix mixin target
Browse files Browse the repository at this point in the history
- Also reduce injection required to workaround for unexpected break changes

Signed-off-by: Hendrix-Shen <[email protected]>
  • Loading branch information
Hendrix-Shen committed Jan 18, 2025
1 parent bfe4b00 commit 49cbeb6
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
//#if MC > 12006
//$$ import com.llamalad7.mixinextras.injector.v2.WrapWithCondition;
//$$ import fi.dy.masa.malilib.gui.widgets.WidgetBase;
//$$ import org.spongepowered.asm.mixin.Dynamic;
//$$ import org.spongepowered.asm.mixin.injection.At;
//#endif

Expand Down Expand Up @@ -99,12 +100,14 @@ protected MixinGuiConfigBase(int listX, int listY) {

//#if MC > 12006
//$$ // Force blocking malilib's intrinsic dropdown list
//$$ @Dynamic
//$$ @WrapWithCondition(
//$$ method = "initGui",
//$$ method = {"initGui", "buildConfigSwitcher"},
//$$ at = @At(
//$$ value = "INVOKE",
//$$ target = "Lfi/dy/masa/malilib/gui/GuiConfigsBase;addWidget(Lfi/dy/masa/malilib/gui/widgets/WidgetBase;)Lfi/dy/masa/malilib/gui/widgets/WidgetBase;"
//$$ )
//$$ ),
//$$ require = 0
//$$ )
//$$ private boolean blockInherentDropdownList(GuiConfigsBase instance, WidgetBase widgetBase) {
//$$ return !Configs.fastSwitchMasaConfigGui.getBooleanValue();
Expand Down

0 comments on commit 49cbeb6

Please sign in to comment.