aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2022-09-22 09:18:26 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2022-09-22 09:18:26 +0200
commit876a166939a7833201dc70a736e662164ea982fe (patch)
treee78ea96d66ff3e10b99c554b317ca3a021deea25
parentd97ae7f4cf1f89c3934a05d47105c102f1154c03 (diff)
downloadNotEnoughUpdates-876a166939a7833201dc70a736e662164ea982fe.tar.gz
NotEnoughUpdates-876a166939a7833201dc70a736e662164ea982fe.tar.bz2
NotEnoughUpdates-876a166939a7833201dc70a736e662164ea982fe.zip
fixed error when reading mining api data
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/util/HotmInformation.java5
1 files changed, 4 insertions, 1 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 a80fcbc8..17a31cd7 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/util/HotmInformation.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/util/HotmInformation.java
@@ -185,7 +185,10 @@ public class HotmInformation {
Tree tree = new Tree();
JsonObject nodes = miningCore.getAsJsonObject("nodes");
for (Map.Entry<String, JsonElement> node : nodes.entrySet()) {
- tree.levels.put(node.getKey(), node.getValue().getAsInt());
+ String key = node.getKey();
+ if (!key.startsWith("toggle_")) {
+ tree.levels.put(key, node.getValue().getAsInt());
+ }
}
if (miningCore.has("powder_mithril_total")) {
tree.totalMithrilPowder = miningCore.get("powder_mithril_total").getAsInt();