mirror of
https://github.com/architectury/architectury-loom.git
synced 2026-03-28 04:07:01 -05:00
Optimise loom configuration, saves 1.2 seconds in my testing. #319
This commit is contained in:
@@ -235,10 +235,8 @@ public class LoomGradleExtension {
|
||||
}
|
||||
|
||||
public File getNativesDirectory() {
|
||||
Object customNativesDir = project.getProperties().get("fabric.loom.natives.dir");
|
||||
|
||||
if (customNativesDir != null) {
|
||||
return new File((String) customNativesDir);
|
||||
if (project.hasProperty("fabric.loom.natives.dir")) {
|
||||
return new File((String) project.property("fabric.loom.natives.dir"));
|
||||
}
|
||||
|
||||
File natives = new File(getUserCache(), "natives/" + getMinecraftProvider().getMinecraftVersion());
|
||||
|
||||
Reference in New Issue
Block a user