aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2022-09-22 09:22:13 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2022-09-22 09:22:13 +0200
commit189904e79e80ccdcc3c44c520560cb409f5c7d1f (patch)
tree6ec9636d46abf6341e06ebeb011460eda659d414
parent876a166939a7833201dc70a736e662164ea982fe (diff)
downloadNotEnoughUpdates-189904e79e80ccdcc3c44c520560cb409f5c7d1f.tar.gz
NotEnoughUpdates-189904e79e80ccdcc3c44c520560cb409f5c7d1f.tar.bz2
NotEnoughUpdates-189904e79e80ccdcc3c44c520560cb409f5c7d1f.zip
Revert "fixed error when reading mining api data"
This reverts commit 876a166939a7833201dc70a736e662164ea982fe.
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/util/HotmInformation.java5
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();