FabricMC / fabric-loom

Gradle build system plugin used to automate the setup of a minecraft mod development environment.
MIT License
233 stars 201 forks source link

Check refmaps exist before adding them to mixin configs #971

Closed Jamalam360 closed 8 months ago

Jamalam360 commented 10 months ago

reproduction for issue this solves:

  1. build a mod with an empty mixin config (no mixins specified)
  2. a refmap is not generated for that config
  3. loom still adds a refmap field to the mixin config
  4. warnings from mixin about not being able to find the refmap, at runtime

So I'm simply checking whether the refmap exists before adding it. This works in the example mod, I deleted the mixins from the common sourceset but not the client sourceset and it works accordingly.