From ec12a6ed004e0619d258e5db3c16bd26ef4c04e1 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Thu, 16 Mar 2023 20:43:48 +0100 Subject: Fixed King's Scent chat detection --- .../at/hannibal2/skyhanni/features/misc/NonGodPotEffectDisplay.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni') 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() -- cgit