fix slim skin models not being recognised

This commit is contained in:
Lee 2024-04-12 19:59:59 +01:00
parent 157bdf5e5a
commit f4cf93cf08

@ -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")
);
}