From 731b921add6ba9d24613a40c2f375159e01261ac Mon Sep 17 00:00:00 2001 From: modmuss50 Date: Mon, 2 Dec 2024 16:35:19 +0000 Subject: [PATCH] Also don't delete datagen output on clean --- .../net/fabricmc/loom/configuration/FabricApiExtension.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/main/java/net/fabricmc/loom/configuration/FabricApiExtension.java b/src/main/java/net/fabricmc/loom/configuration/FabricApiExtension.java index 2df76ec72..bda2de48a 100644 --- a/src/main/java/net/fabricmc/loom/configuration/FabricApiExtension.java +++ b/src/main/java/net/fabricmc/loom/configuration/FabricApiExtension.java @@ -135,11 +135,6 @@ public void configureDataGeneration(Action action) { jar.exclude(".cache/**"); }); - taskContainer.getByName(LifecycleBasePlugin.CLEAN_TASK_NAME, task -> { - Delete clean = (Delete) task; - clean.delete(outputDirectory); - }); - if (settings.getCreateSourceSet().get()) { final boolean isClientAndSplit = extension.areEnvironmentSourceSetsSplit() && settings.getClient().get();