Fixed armour models loading from the incorrect directory

This commit is contained in:
Sollace 2023-10-06 00:20:05 +01:00
parent 31857e2de0
commit 131bc7cb3f
No known key found for this signature in database
GPG key ID: E52FACE7B5C773DB

View file

@ -18,7 +18,7 @@ public interface ArmorModelRegistry {
if (id.getNamespace().equals("minecraft")) {
return Optional.empty();
}
return REGISTRY.computeIfAbsent(id.withPath(p -> "models/armor/" + layer.name().toLowerCase(Locale.ROOT) + "_" + p + ".json"), i -> {
return REGISTRY.computeIfAbsent(id.withPath(p -> "armor/" + layer.name().toLowerCase(Locale.ROOT) + "_" + p + ".json"), i -> {
return Optional.of(Mson.getInstance().registerModel(i, PonyArmourModel::new));
}).filter(key -> key.getModelData().isPresent());
}