From 9de92b1cd5db442455b2061a31e1eae62fbe901a Mon Sep 17 00:00:00 2001 From: asie Date: Mon, 18 Feb 2019 16:36:03 +0100 Subject: [PATCH] fix Fabric generating non-compliant Identifiers --- .../mixin/resources/MixinKeyedResourceReloadListener.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/fabricmc/fabric/mixin/resources/MixinKeyedResourceReloadListener.java b/src/main/java/net/fabricmc/fabric/mixin/resources/MixinKeyedResourceReloadListener.java index 6e04e0124..2220c1ca6 100644 --- a/src/main/java/net/fabricmc/fabric/mixin/resources/MixinKeyedResourceReloadListener.java +++ b/src/main/java/net/fabricmc/fabric/mixin/resources/MixinKeyedResourceReloadListener.java @@ -36,6 +36,7 @@ import org.spongepowered.asm.mixin.Mixin; import java.util.Collection; import java.util.Collections; +import java.util.Locale; public class MixinKeyedResourceReloadListener { @Mixin({ @@ -82,7 +83,7 @@ public class MixinKeyedResourceReloadListener { } else if (self instanceof TextureManager) { fabric_id = ResourceReloadListenerKeys.TEXTURES; } else { - fabric_id = new Identifier("minecraft", "private/" + self.getClass().getSimpleName()); + fabric_id = new Identifier("minecraft", "private/" + self.getClass().getSimpleName().toLowerCase(Locale.ROOT)); } } @@ -132,7 +133,7 @@ public class MixinKeyedResourceReloadListener { } else if (self instanceof TagManager) { fabric_id = ResourceReloadListenerKeys.TAGS; } else { - fabric_id = new Identifier("minecraft", "private/" + self.getClass().getSimpleName()); + fabric_id = new Identifier("minecraft", "private/" + self.getClass().getSimpleName().toLowerCase(Locale.ROOT)); } }