Skip to content

Commit

Permalink
Disable useLegacyMixinAp check in getDefaultRefmapName()
Browse files Browse the repository at this point in the history
Fixes #242.
  • Loading branch information
Juuxel committed Dec 7, 2024
1 parent aafd69b commit eb593da
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,10 @@ public MixinExtensionImpl(Project project) {

@Override
public Property<String> getDefaultRefmapName() {
if (!super.getUseLegacyMixinAp().get()) throw new IllegalStateException("You need to set useLegacyMixinAp = true to configure Mixin annotation processor.");
// Arch: We need to access afterEvaluate state in useLegacyMixinAp's convention, so let's not query it.
// Otherwise, this property can't be set in a buildscript without afterEvaluate.
// https://github.com/architectury/architectury-loom/issues/242
// if (!super.getUseLegacyMixinAp().get()) throw new IllegalStateException("You need to set useLegacyMixinAp = true to configure Mixin annotation processor.");

return defaultRefmapName;
}
Expand Down

0 comments on commit eb593da

Please sign in to comment.