aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjani270 <69345714+jani270@users.noreply.github.com>2024-01-13 20:02:35 +0100
committerGitHub <noreply@github.com>2024-01-13 20:02:35 +0100
commit9613fe50e8f0076ed9a0b719052f4163960f9565 (patch)
treede8924ba39a3f818da21f910f26ad48507430749
parent33e458dbf4327b60faef180322cfba5da7ce3370 (diff)
downloadNotEnoughUpdates-9613fe50e8f0076ed9a0b719052f4163960f9565.tar.gz
NotEnoughUpdates-9613fe50e8f0076ed9a0b719052f4163960f9565.tar.bz2
NotEnoughUpdates-9613fe50e8f0076ed9a0b719052f4163960f9565.zip
Fixed HATCCESSORY -> HATCESSORY (#1001)
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java2
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/miscgui/AccessoryBagOverlay.java4
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/profileviewer/PlayerStats.java2
3 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java b/src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java
index f89eae44..87b08ef7 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java
@@ -1412,7 +1412,7 @@ public class NEUOverlay extends Gui {
"DUNGEON BRACELET"
) >= 0;
} else if (getSortMode() == SORT_MODE_ACCESSORY) {
- return checkItemType(item.get("lore").getAsJsonArray(), "ACCESSORY", "HATCCESSORY", "DUNGEON ACCESSORY") >= 0;
+ return checkItemType(item.get("lore").getAsJsonArray(), "ACCESSORY", "HATCESSORY", "DUNGEON ACCESSORY") >= 0;
}
return true;
}
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 27a0bbb3..6e81351a 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/miscgui/AccessoryBagOverlay.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/miscgui/AccessoryBagOverlay.java
@@ -444,7 +444,7 @@ public class AccessoryBagOverlay {
if (checkItemType(
entry.getValue().get("lore").getAsJsonArray(),
"ACCESSORY",
- "HATCCESSORY",
+ "HATCESSORY",
"DUNGEON ACCESSORY"
) >= 0) {
missingInternal.add(entry.getKey());
@@ -1038,7 +1038,7 @@ public class AccessoryBagOverlay {
}
public static boolean isAccessory(ItemStack stack) {
- return checkItemType(stack, true, "ACCESSORY", "HATCCESSORY") >= 0;
+ return checkItemType(stack, true, "ACCESSORY", "HATCESSORY") >= 0;
}
public static int getRarity(ItemStack stack) {
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/PlayerStats.java b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/PlayerStats.java
index 8309b9db..2f9ca90b 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/PlayerStats.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/PlayerStats.java
@@ -421,7 +421,7 @@ public class PlayerStats {
if (itemBonuses.containsKey(internalname)) {
continue;
}
- if (!talismanOnly || Utils.checkItemType(item.get("lore").getAsJsonArray(), true, "ACCESSORY", "HATCCESSORY") >= 0) {
+ if (!talismanOnly || Utils.checkItemType(item.get("lore").getAsJsonArray(), true, "ACCESSORY", "HATCESSORY") >= 0) {
Stats itemBonus = getStatForItem(internalname, item, item.get("lore").getAsJsonArray());
itemBonuses.put(internalname, itemBonus);