diff --git a/build.gradle b/build.gradle index c13e706..4ea0eb1 100644 --- a/build.gradle +++ b/build.gradle @@ -116,6 +116,10 @@ jar { } } +remapJar { + atAccessWideners.add(loom.accessWidenerPath.get().asFile.name) +} + publishing { publications { mavenJava(MavenPublication) { diff --git a/gradle.properties b/gradle.properties index 0621000..122d37c 100644 --- a/gradle.properties +++ b/gradle.properties @@ -18,7 +18,7 @@ authors=Falkreon, acikek contributors=Trudle, Tomate0613, afamiliarquiet, FoundationGames, TheEpicBlock, hama license=MIT # Mod Version -baseVersion=1.8.2-rc.1 +baseVersion=1.8.2-rc.2 # Branch Metadata branch=1.21 tagBranch=1.21 diff --git a/src/main/java/net/modfest/scatteredshards/mixin/client/GameMenuScreenMixin.java b/src/main/java/net/modfest/scatteredshards/mixin/client/GameMenuScreenMixin.java index 54a8367..52ffa6d 100644 --- a/src/main/java/net/modfest/scatteredshards/mixin/client/GameMenuScreenMixin.java +++ b/src/main/java/net/modfest/scatteredshards/mixin/client/GameMenuScreenMixin.java @@ -6,7 +6,9 @@ import net.minecraft.client.gui.widget.ButtonWidget; import net.minecraft.client.gui.widget.GridWidget; import net.minecraft.client.gui.widget.Widget; +import net.minecraft.text.Style; import net.minecraft.text.Text; +import net.minecraft.util.Formatting; import net.modfest.scatteredshards.ScatteredShards; import net.modfest.scatteredshards.client.ScatteredShardsClient; import org.spongepowered.asm.mixin.Mixin; @@ -17,6 +19,8 @@ public class GameMenuScreenMixin { @WrapOperation(method = "initWidgets", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/gui/widget/GridWidget$Adder;add(Lnet/minecraft/client/gui/widget/Widget;)Lnet/minecraft/client/gui/widget/Widget;", ordinal = 0)) private Widget replaceAdvancements(GridWidget.Adder instance, Widget widget, Operation original) { if (!ScatteredShards.CONFIG.replace_advancements.get()) return original.call(instance, widget); - return instance.add(ButtonWidget.builder(Text.translatable("menu.scattered_shards.collection"), b -> ScatteredShardsClient.openShardTablet()).width(98).build()); + return instance.add(ButtonWidget.builder( + Text.translatable("menu.scattered_shards.collection").setStyle(Style.EMPTY.withColor(Formatting.GOLD)), + b -> ScatteredShardsClient.openShardTablet()).width(98).build()); } }