fix slim skin models not being recognised
All checks were successful
Deploy App / docker (ubuntu-latest, 2.44.0, 17, 3.8.5) (push) Successful in 1m25s

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