aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-03-16 20:43:48 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-03-16 20:43:48 +0100
commitec12a6ed004e0619d258e5db3c16bd26ef4c04e1 (patch)
treec7183fe556b48ad451258045a571cf0d14b0f0e8 /src/main/java/at
parentf007eb5fd10b51f74ddae2b13688bd86bf8f786c (diff)
downloadskyhanni-ec12a6ed004e0619d258e5db3c16bd26ef4c04e1.tar.gz
skyhanni-ec12a6ed004e0619d258e5db3c16bd26ef4c04e1.tar.bz2
skyhanni-ec12a6ed004e0619d258e5db3c16bd26ef4c04e1.zip
Fixed King's Scent chat detection
Diffstat (limited to 'src/main/java/at')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/misc/NonGodPotEffectDisplay.kt4
1 files changed, 1 insertions, 3 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 52854ae93..0fc8b26d8 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/misc/NonGodPotEffectDisplay.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/misc/NonGodPotEffectDisplay.kt
@@ -12,7 +12,6 @@ import at.hannibal2.skyhanni.utils.LorenzUtils.sorted
import at.hannibal2.skyhanni.utils.RenderUtils.renderStrings
import at.hannibal2.skyhanni.utils.TimeUnit
import at.hannibal2.skyhanni.utils.TimeUtils
-import net.minecraft.client.Minecraft
import net.minecraft.network.play.server.S30PacketWindowItems
import net.minecraft.network.play.server.S47PacketPlayerListHeaderFooter
import net.minecraftforge.event.world.WorldEvent
@@ -74,8 +73,7 @@ class NonGodPotEffectDisplay {
}
- val name = Minecraft.getMinecraft().thePlayer.displayName
- if (event.message == "§e[NPC] §6King Yolkar§f: §rWell done, $name§r!") {
+ if (event.message == "§e[NPC] §6King Yolkar§f: §rThese eggs will help me stomach my pain.") {
checkFooter = true
activeEffects["§2King's Scent I"] = System.currentTimeMillis() + 1000 * 60 * 20
update()