Skip to content

Commit

Permalink
ordinal 0
Browse files Browse the repository at this point in the history
  • Loading branch information
sisby-folk committed Apr 28, 2024
1 parent 14bceb8 commit d2e718b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
public class InGameHudMixin {
@Shadow private ItemStack currentStack;

@ModifyExpressionValue(method = "renderHeldItemTooltip", at = @At(value = "INVOKE", target = "Lnet/minecraft/text/Text;empty()Lnet/minecraft/text/MutableText;"))
@ModifyExpressionValue(method = "renderHeldItemTooltip", at = @At(value = "INVOKE", target = "Lnet/minecraft/text/Text;empty()Lnet/minecraft/text/MutableText;", ordinal = 0))
private MutableText showBrokenHeldItemTooltip(MutableText text) {
if (TinkerersSmithing.isBroken(currentStack)) {
return Text.empty().append(Text.translatable("item.tinkerers_smithing.broken").setStyle(Style.EMPTY.withColor(Formatting.DARK_RED).withItalic(false))).append(Text.literal(" ")).append(text);
Expand Down

0 comments on commit d2e718b

Please sign in to comment.