diff options
author | efefury <69400149+efefury@users.noreply.github.com> | 2023-08-21 13:54:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-21 13:54:48 +0200 |
commit | c162193e5e08d0ab3134b43fa9fe8cdb6919ddbe (patch) | |
tree | ac57309ff3f36d1b4c42bbecfa7e28b11145a49d | |
parent | c90c4c0c4d72dc3427a4173d806873a994b92e6a (diff) | |
download | NotEnoughUpdates-c162193e5e08d0ab3134b43fa9fe8cdb6919ddbe.tar.gz NotEnoughUpdates-c162193e5e08d0ab3134b43fa9fe8cdb6919ddbe.tar.bz2 NotEnoughUpdates-c162193e5e08d0ab3134b43fa9fe8cdb6919ddbe.zip |
fix accessory bag overlay bug (#791)
-rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/miscgui/AccessoryBagOverlay.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscgui/AccessoryBagOverlay.java b/src/main/java/io/github/moulberry/notenoughupdates/miscgui/AccessoryBagOverlay.java index 908ae307..dce5cf9a 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/miscgui/AccessoryBagOverlay.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/miscgui/AccessoryBagOverlay.java @@ -428,7 +428,16 @@ public class AccessoryBagOverlay { missing = new ArrayList<>(); List<String> missingInternal = new ArrayList<>(); + + List<String> ignoredTalisman = new ArrayList<>(); + if (misc.has("ignored_talisman")) { + for (JsonElement jsonElement : misc.getAsJsonArray("ignored_talisman")) { + ignoredTalisman.add(jsonElement.getAsString()); + } + } + for (Map.Entry<String, JsonObject> entry : NotEnoughUpdates.INSTANCE.manager.getItemInformation().entrySet()) { + if (ignoredTalisman.contains(entry.getValue().get("internalname").getAsString())) continue; if (entry.getValue().has("lore")) { if (checkItemType( entry.getValue().get("lore").getAsJsonArray(), |