diff --git a/src/main/java/fr/hugman/dawn/registry/ReloadableResourceManager.java b/src/main/java/fr/hugman/dawn/registry/ReloadableResourceManager.java index 9de5fd9..f0c68fd 100644 --- a/src/main/java/fr/hugman/dawn/registry/ReloadableResourceManager.java +++ b/src/main/java/fr/hugman/dawn/registry/ReloadableResourceManager.java @@ -145,7 +145,7 @@ public void reload(ResourceManager manager) { idPath = idPath.substring(folderPath.length() + 1, idPath.length() - ".json".length()); Identifier resourceId = new Identifier(path.getKey().getNamespace(), idPath); DataResult result = codec.decode(JsonOps.INSTANCE, json).map(Pair::getFirst); - result.resultOrPartial(error -> LOGGER.error("Error while decoding resource of type {} at {}: {}", id, path, error)) + result.resultOrPartial(error -> LOGGER.error("Error while decoding resource of type {} at {}: {}", id, resourceId, error)) .ifPresent(resource -> builder.put(resourceId, resource)); } } catch(IOException e) {