From 91e7d2b7a47f785b6b168a855cc53cce24867200 Mon Sep 17 00:00:00 2001 From: Lucas Niewohner Date: Tue, 16 Jan 2024 17:00:41 -0700 Subject: [PATCH] Got rid of formatting to help with export sizes. I recently discovered that the gregtech handler data is so throughly f'd and exports unrelated recipes. So that's cool --- src/main/java/com/hermanoid/nerd/RecipeDumper.java | 2 +- src/main/java/com/hermanoid/nerd/dumpers/GenericDumper.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/hermanoid/nerd/RecipeDumper.java b/src/main/java/com/hermanoid/nerd/RecipeDumper.java index 3791cfb..8149209 100644 --- a/src/main/java/com/hermanoid/nerd/RecipeDumper.java +++ b/src/main/java/com/hermanoid/nerd/RecipeDumper.java @@ -148,7 +148,7 @@ private void doDumpJson(File file) { jsonWriter = new JsonWriter(writer); jsonWriter.beginObject(); - jsonWriter.setIndent(" "); + jsonWriter.setIndent(""); // Compact writing jsonWriter.name("version") .value(Tags.VERSION); jsonWriter.name("queries") diff --git a/src/main/java/com/hermanoid/nerd/dumpers/GenericDumper.java b/src/main/java/com/hermanoid/nerd/dumpers/GenericDumper.java index 56e9ae6..13d8623 100644 --- a/src/main/java/com/hermanoid/nerd/dumpers/GenericDumper.java +++ b/src/main/java/com/hermanoid/nerd/dumpers/GenericDumper.java @@ -32,9 +32,9 @@ public JsonElement dump(ICraftingHandler handler, int recipeIndex) { // But, they're also always available and the best option available JsonObject recipeDump = new JsonObject(); recipeDump.add("ingredients", dumpItemStackList(handler.getIngredientStacks(recipeIndex))); - recipeDump.add("other_stacks", dumpItemStackList(handler.getOtherStacks(recipeIndex))); + recipeDump.add("otherStacks", dumpItemStackList(handler.getOtherStacks(recipeIndex))); if (handler.getResultStack(recipeIndex) != null) { - recipeDump.add("out_item", gson.toJsonTree(handler.getResultStack(recipeIndex).item)); + recipeDump.add("outItem", gson.toJsonTree(handler.getResultStack(recipeIndex).item)); } return recipeDump; }