From f4cf93cf088e39d5f739b1e464b8dac054aafae1 Mon Sep 17 00:00:00 2001 From: Liam Date: Fri, 12 Apr 2024 19:59:59 +0100 Subject: [PATCH] fix slim skin models not being recognised --- src/main/java/cc/fascinated/model/skin/Skin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/cc/fascinated/model/skin/Skin.java b/src/main/java/cc/fascinated/model/skin/Skin.java index 2931bfd..7ef0623 100644 --- a/src/main/java/cc/fascinated/model/skin/Skin.java +++ b/src/main/java/cc/fascinated/model/skin/Skin.java @@ -80,7 +80,7 @@ public class Skin { JsonObject metadata = json.getAsJsonObject("metadata"); return new Skin( url, - EnumUtils.getEnumConstant(Model.class, metadata != null ? metadata.get("model").getAsString() : "DEFAULT") + EnumUtils.getEnumConstant(Model.class, metadata != null ? metadata.get("model").getAsString().toUpperCase() : "DEFAULT") ); }