From eb0c45956b9bd62f7b59abf33af6b6251c6d788f Mon Sep 17 00:00:00 2001 From: modmuss50 Date: Mon, 16 Oct 2023 09:11:55 +0100 Subject: [PATCH] Fix server only jar, closes #966 --- .../minecraft/mapped/ProcessedNamedMinecraftProvider.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/fabricmc/loom/configuration/providers/minecraft/mapped/ProcessedNamedMinecraftProvider.java b/src/main/java/net/fabricmc/loom/configuration/providers/minecraft/mapped/ProcessedNamedMinecraftProvider.java index d7dc8bb09..972fb3c50 100644 --- a/src/main/java/net/fabricmc/loom/configuration/providers/minecraft/mapped/ProcessedNamedMinecraftProvider.java +++ b/src/main/java/net/fabricmc/loom/configuration/providers/minecraft/mapped/ProcessedNamedMinecraftProvider.java @@ -28,6 +28,7 @@ import java.nio.file.Files; import java.nio.file.Path; import java.util.List; +import java.util.Locale; import java.util.Map; import java.util.Objects; import java.util.function.Function; @@ -127,7 +128,7 @@ private void deleteSimilarJars(Path jar) throws IOException { @Override protected String getName(String name) { // Hash the cache value so that we don't have to process the same JAR multiple times for many projects - return "minecraft-%s-%s".formatted(name, jarProcessorManager.getJarHash()); + return "minecraft-%s-%s".formatted(name, jarProcessorManager.getJarHash()).toLowerCase(Locale.ROOT); } @Override