aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-09-30 12:44:50 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-09-30 12:44:50 +0200
commit151ba304db470dc470c9e5b917aa0a4825547b2b (patch)
tree67ac95008148e93fb84737f8f6dc6f5b86a66401 /src/main/java/at/hannibal2/skyhanni
parentfb57c202ae8f8cd84adaf8b593eac22166babf19 (diff)
downloadskyhanni-151ba304db470dc470c9e5b917aa0a4825547b2b.tar.gz
skyhanni-151ba304db470dc470c9e5b917aa0a4825547b2b.tar.bz2
skyhanni-151ba304db470dc470c9e5b917aa0a4825547b2b.zip
Fixed mixins not getting detected correctly from effects inventory for Non God Pot Effect display.
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/misc/NonGodPotEffectDisplay.kt12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/NonGodPotEffectDisplay.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/NonGodPotEffectDisplay.kt
index 025665a37..e214fc140 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/misc/NonGodPotEffectDisplay.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/misc/NonGodPotEffectDisplay.kt
@@ -41,11 +41,11 @@ class NonGodPotEffectDisplay {
INVISIBILITY("invisibility", "§8Invisibility I"), // when wearing sorrow armor
- REV("ZOMBIE_BRAIN", "§9Zombie Brain Mixin", true),
- TARA("SPIDER_EGG", "§9Spider Egg Mixin", true),
- SVEN("WOLF_FUR", "§9Wolf Fur Mixin", true),
- VOID("END_PORTAL_FUMES", "§9End Portal Fumes", true),
- BLAZE("GABAGOEY", "§9Gabagoey", true),
+ REV("ZOMBIE_BRAIN", "§cZombie Brain Mixin", true),
+ TARA("SPIDER_EGG", "§6Spider Egg Mixin", true),
+ SVEN("WOLF_FUR", "§bWolf Fur Mixin", true),
+ VOID("END_PORTAL_FUMES", "§6Ender Portal Fumes", true),
+ BLAZE("GABAGOEY", "§fGabagoey", true),
DEEP_TERROR("DEEPTERROR", "§4Deepterror", true),
;
@@ -155,7 +155,7 @@ class NonGodPotEffectDisplay {
for (stack in event.inventoryItems.values) {
val name = stack.name ?: continue
for (effect in NonGodPotEffect.entries) {
- if (name != effect.displayName) continue
+ if (!name.contains(effect.displayName)) continue
for (line in stack.getLore()) {
if (line.contains("Remaining") &&
line != "§7Time Remaining: §aCompleted!" &&