Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions src/main/java/com/hermanoid/nerd/RecipeDumper.java
Original file line number Diff line number Diff line change
Expand Up @@ -125,12 +125,7 @@ public Iterable<String[]> dump(int mode) {

@Override
public void dumpTo(File file) {
// Allow both 1 and 0... I dunno why but if you're running debug the mode is 1 and if you run with the full
// GTNH modpack it's 0.
// Instead of solving it, we ignore it (big brain)
if (getMode() != 1 && getMode() != 0) {
throw new RuntimeException("RecipeDumper received an unexpected mode! There should only be one mode: JSON");
}
// Always dump JSON, regardless of mode
dumpJson(file);
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
package com.hermanoid.nerd.stack_serialization;

import java.lang.reflect.Type;
import java.util.*;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;

import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
Expand Down
Loading