From d202ef5439a180efecc27ab4695b1a12febb041f Mon Sep 17 00:00:00 2001 From: nea Date: Mon, 4 Sep 2023 20:22:51 +0200 Subject: Make chat events use fabric events [no changelog] --- src/main/kotlin/moe/nea/firmament/features/world/FairySouls.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/kotlin/moe/nea/firmament/features/world') diff --git a/src/main/kotlin/moe/nea/firmament/features/world/FairySouls.kt b/src/main/kotlin/moe/nea/firmament/features/world/FairySouls.kt index c1ccfc4..462325e 100644 --- a/src/main/kotlin/moe/nea/firmament/features/world/FairySouls.kt +++ b/src/main/kotlin/moe/nea/firmament/features/world/FairySouls.kt @@ -17,7 +17,7 @@ import net.minecraft.client.render.VertexFormat import net.minecraft.client.render.VertexFormats import net.minecraft.text.Text import net.minecraft.util.math.Vec3d -import moe.nea.firmament.events.ServerChatLineReceivedEvent +import moe.nea.firmament.events.AllowChatEvent import moe.nea.firmament.events.SkyblockServerUpdateEvent import moe.nea.firmament.events.WorldRenderLastEvent import moe.nea.firmament.features.FirmamentFeature @@ -125,7 +125,7 @@ object FairySouls : FirmamentFeature { updateWorldSouls() updateMissingSouls() } - ServerChatLineReceivedEvent.subscribe { + AllowChatEvent.subscribe { when (it.text.unformattedString) { "You have already found that Fairy Soul!" -> { markNearestSoul() -- cgit