diff --git a/src/main/java/dev/microcontrollers/overlaytweaks/config/OverlayTweaksConfig.java b/src/main/java/dev/microcontrollers/overlaytweaks/config/OverlayTweaksConfig.java index 37200c8..8fddd76 100644 --- a/src/main/java/dev/microcontrollers/overlaytweaks/config/OverlayTweaksConfig.java +++ b/src/main/java/dev/microcontrollers/overlaytweaks/config/OverlayTweaksConfig.java @@ -121,7 +121,7 @@ public static Screen configScreen(Screen parent) { // GUIs - //#if MC <= 1.20.44 + //#if MC <= 1.20.4 //$$ .group(OptionGroup.createBuilder() //$$ .name(Text.literal("Tab Background")) //$$ .option(Option.createBuilder(float.class) diff --git a/src/main/java/dev/microcontrollers/overlaytweaks/mixin/TabNavigationWidgetMixin.java b/src/main/java/dev/microcontrollers/overlaytweaks/mixin/TabNavigationWidgetMixin.java index 9599298..9c9b7b3 100644 --- a/src/main/java/dev/microcontrollers/overlaytweaks/mixin/TabNavigationWidgetMixin.java +++ b/src/main/java/dev/microcontrollers/overlaytweaks/mixin/TabNavigationWidgetMixin.java @@ -1,12 +1,12 @@ package dev.microcontrollers.overlaytweaks.mixin; import com.moulberry.mixinconstraints.annotations.IfMinecraftVersion; -//#if MC >= 1.20.4 +//#if MC <= 1.20.4 //$$ import dev.microcontrollers.overlaytweaks.config.OverlayTweaksConfig; //#endif import net.minecraft.client.gui.widget.TabNavigationWidget; import org.spongepowered.asm.mixin.Mixin; -//#if MC >= 1.20.4 +//#if MC <= 1.20.4 //$$ import org.spongepowered.asm.mixin.Unique; //$$ import org.spongepowered.asm.mixin.injection.Constant; //$$ import org.spongepowered.asm.mixin.injection.ModifyConstant; @@ -20,7 +20,7 @@ @IfMinecraftVersion(maxVersion = "1.20.4") @Mixin(TabNavigationWidget.class) public class TabNavigationWidgetMixin { - //#if MC >= 1.20.4 + //#if MC <= 1.20.4 //$$ @ModifyConstant(method = "render", constant = @Constant(intValue = -16777216)) //$$ private int modifyTabBackgroundColor(int opacity) { //$$ return withTabBackgroundOpacity(opacity, OverlayTweaksConfig.CONFIG.instance().tabBackgroundOpacity / 100F);