Use Project.findProperty in LoomGradleExtension.isForge

This commit is contained in:
Juuxel
2020-07-30 16:09:02 +03:00
parent 3ee61ced8e
commit ed331990e7

View File

@@ -103,7 +103,7 @@ public class LoomGradleExtension {
this.project = project;
this.autoGenIDERuns = AbstractPlugin.isRootProject(project);
this.unmappedMods = project.files();
this.forge = new LazyBool(() -> Boolean.parseBoolean(Objects.toString(project.getProperties().get(FORGE_PROPERTY))));
this.forge = new LazyBool(() -> Boolean.parseBoolean(Objects.toString(project.findProperty(FORGE_PROPERTY))));
}
/**