Skip to content

Commit

Permalink
ArtifactMetadata: Only query property if project is nonnull
Browse files Browse the repository at this point in the history
  • Loading branch information
Juuxel authored and shedaniel committed Dec 8, 2024
1 parent 2ce86e3 commit b0d29d4
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ public static ArtifactMetadata create(@Nullable Project project, ArtifactRef art
}

if (loomVersion != null && refmapRemapType == MixinRemapType.STATIC) {
validateLoomVersion(loomVersion, currentLoomVersion, GradleUtils.getBooleanProperty(project, Constants.Properties.IGNORE_DEPENDENCY_LOOM_VERSION_VALIDATION));
final boolean lenient = project != null && GradleUtils.getBooleanProperty(project, Constants.Properties.IGNORE_DEPENDENCY_LOOM_VERSION_VALIDATION);
validateLoomVersion(loomVersion, currentLoomVersion, lenient);
}

if (knownIndyBsmsValue != null) {
Expand Down

0 comments on commit b0d29d4

Please sign in to comment.