KubeJS

KubeJS

83M Downloads

handleFailedRecipe should log as error, not warn

pietro-lopes opened this issue ยท 0 comments

commented

public void handleFailedRecipe(ResourceLocation id, JsonElement json, Throwable ex) {
// only handle recipes that failed because of kubejs interfering
if (json.isJsonObject() && json.getAsJsonObject().has(KubeRecipe.CHANGED_MARKER)) {
json.getAsJsonObject().remove(KubeRecipe.CHANGED_MARKER); // cleanup for logging
ConsoleJS.SERVER.warn("Error parsing recipe %s: %s".formatted(id, json), ex);
failedCount++;
}
}

This is a json modified by kubejs, so it should be an error.