Skip to content

Commit

Permalink
Fix missing access transformer
Browse files Browse the repository at this point in the history
  • Loading branch information
zbx1425 committed Dec 26, 2024
1 parent edc859b commit 8e4ea77
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,10 @@ jar {
}
}

remapJar {
atAccessWideners.add(loom.accessWidenerPath.get().asFile.name)
}

publishing {
publications {
mavenJava(MavenPublication) {
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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<Widget> 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());
}
}

0 comments on commit 8e4ea77

Please sign in to comment.