Trinkets (Fabric)

Trinkets (Fabric)

32M Downloads

Mixin remap error in dev env when depending on Trinkets 3.7.2 in a 1.20.1 Mojmap project

object-Object opened this issue ยท 0 comments

commented

When depending on Trinkets 3.7.2 in a Fabric 1.20.1 mod using Mojang mappings, Minecraft crashes on startup in the dev environment with the following error: Mixin apply for mod trinkets failed trinkets.mixins.json:ClickableWidgetMixin from mod trinkets -> net.minecraft.client.gui.components.AbstractWidget: org.spongepowered.asm.mixin.transformer.throwables.InvalidMixinException @Shadow field hovered was not located in the target class net.minecraft.client.gui.components.AbstractWidget. Using refmap trinkets-refmap.json

The issue does not occur with Trinkets 3.7.1. Looking at the diff between 3.7.1 and 3.7.2, I think maybe the issue is related to the publishing changes in c5b3882?

Reproduction steps

  1. Generate a template mod using https://fabricmc.net/develop/template/ with the following settings:
    • Minecraft Version: 1.20.1
    • Mojang Mappings: Yes
    • Split client and common sources: No (this probably doesn't matter?)
  2. Add Trinkets to build.gradle following the steps in the Trinkets README.
  3. Add trinkets_version=3.7.2 to gradle.properties.
  4. Run the task fabric:runClient.

This repo contains an example mod that reproduces the issue: https://github.com/object-Object/trinkets-remap-bug

Logs

latest.log

debug.log

crash-2025-02-17_21.29.13-client.txt