From 1d0946f55b403146d21e5fb68cc32209661bba5a Mon Sep 17 00:00:00 2001 From: modmuss50 Date: Sat, 30 Nov 2024 12:22:31 +0000 Subject: [PATCH] Fix datagen task output --- .../net/fabricmc/loom/configuration/FabricApiExtension.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/fabricmc/loom/configuration/FabricApiExtension.java b/src/main/java/net/fabricmc/loom/configuration/FabricApiExtension.java index 3fea88beb..de5cb074f 100644 --- a/src/main/java/net/fabricmc/loom/configuration/FabricApiExtension.java +++ b/src/main/java/net/fabricmc/loom/configuration/FabricApiExtension.java @@ -208,7 +208,7 @@ public void configureDataGeneration(Action action) { // Add the output directory as an output allowing the task to be skipped. getProject().getTasks().named("runDatagen", task -> { - task.getOutputs().file(outputDirectory); + task.getOutputs().dir(outputDirectory); }); } }