diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2022-09-22 09:22:13 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2022-09-22 09:22:13 +0200 |
commit | 189904e79e80ccdcc3c44c520560cb409f5c7d1f (patch) | |
tree | 6ec9636d46abf6341e06ebeb011460eda659d414 /src | |
parent | 876a166939a7833201dc70a736e662164ea982fe (diff) | |
download | NotEnoughUpdates-189904e79e80ccdcc3c44c520560cb409f5c7d1f.tar.gz NotEnoughUpdates-189904e79e80ccdcc3c44c520560cb409f5c7d1f.tar.bz2 NotEnoughUpdates-189904e79e80ccdcc3c44c520560cb409f5c7d1f.zip |
Revert "fixed error when reading mining api data"
This reverts commit 876a166939a7833201dc70a736e662164ea982fe.
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/util/HotmInformation.java | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/util/HotmInformation.java b/src/main/java/io/github/moulberry/notenoughupdates/util/HotmInformation.java index 17a31cd7..a80fcbc8 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/util/HotmInformation.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/util/HotmInformation.java @@ -185,10 +185,7 @@ public class HotmInformation { Tree tree = new Tree(); JsonObject nodes = miningCore.getAsJsonObject("nodes"); for (Map.Entry<String, JsonElement> node : nodes.entrySet()) { - String key = node.getKey(); - if (!key.startsWith("toggle_")) { - tree.levels.put(key, node.getValue().getAsInt()); - } + tree.levels.put(node.getKey(), node.getValue().getAsInt()); } if (miningCore.has("powder_mithril_total")) { tree.totalMithrilPowder = miningCore.get("powder_mithril_total").getAsInt(); |