aboutsummaryrefslogtreecommitdiff
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
commit0abc309e72dce4a590b98c3e6813c9dbfcfea06c (patch)
treec7183fe556b48ad451258045a571cf0d14b0f0e8
parentcf9bc0d1a16784524ee6ec2b885b7ee9201c136b (diff)
downloadSkyHanni-0abc309e72dce4a590b98c3e6813c9dbfcfea06c.tar.gz
SkyHanni-0abc309e72dce4a590b98c3e6813c9dbfcfea06c.tar.bz2
SkyHanni-0abc309e72dce4a590b98c3e6813c9dbfcfea06c.zip
Fixed King's Scent chat detection
-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()