Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
object-Object opened this issue Feb 18, 2025 · 0 comments

Comments

@object-Object
Copy link

object-Object commented Feb 18, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant