Skip to content

Commit

Permalink
Got rid of formatting to help with export sizes. I recently discovere…
Browse files Browse the repository at this point in the history
…d that the gregtech handler data is so throughly f'd and exports unrelated recipes. So that's cool
  • Loading branch information
Hermanoid committed Jan 17, 2024
1 parent 55a21d2 commit 91e7d2b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/java/com/hermanoid/nerd/RecipeDumper.java
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/hermanoid/nerd/dumpers/GenericDumper.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 91e7d2b

Please sign in to comment.