aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorefefury <69400149+efefury@users.noreply.github.com>2023-08-21 13:54:48 +0200
committerGitHub <noreply@github.com>2023-08-21 13:54:48 +0200
commitc162193e5e08d0ab3134b43fa9fe8cdb6919ddbe (patch)
treeac57309ff3f36d1b4c42bbecfa7e28b11145a49d /src/main
parentc90c4c0c4d72dc3427a4173d806873a994b92e6a (diff)
downloadNotEnoughUpdates-c162193e5e08d0ab3134b43fa9fe8cdb6919ddbe.tar.gz
NotEnoughUpdates-c162193e5e08d0ab3134b43fa9fe8cdb6919ddbe.tar.bz2
NotEnoughUpdates-c162193e5e08d0ab3134b43fa9fe8cdb6919ddbe.zip
fix accessory bag overlay bug (#791)
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/miscgui/AccessoryBagOverlay.java9
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(),