From 33d1f9669aad5cfbc89d5f72a6305b459cef0ce9 Mon Sep 17 00:00:00 2001 From: Rainnny7 Date: Wed, 10 Apr 2024 07:40:23 -0400 Subject: [PATCH] Ensure the skin part cache uses lowercase --- src/main/java/me/braydon/mc/service/MojangService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/me/braydon/mc/service/MojangService.java b/src/main/java/me/braydon/mc/service/MojangService.java index c4b35ee..40f80f9 100644 --- a/src/main/java/me/braydon/mc/service/MojangService.java +++ b/src/main/java/me/braydon/mc/service/MojangService.java @@ -178,7 +178,7 @@ public final class MojangService { size = DEFAULT_PART_TEXTURE_SIZE; } size = Math.min(size, MAX_PART_TEXTURE_SIZE); // Limit the size to 512 - String id = "%s-%s-%s-%s".formatted(query, part.name(), size, extension); // The id of the skin part + String id = "%s-%s-%s-%s".formatted(query.toLowerCase(), part.name(), size, extension); // The id of the skin part Optional cached = skinPartTextureCache.findById(id); // Get the cached texture if (cached.isPresent()) { // Respond with the cache if present