From 162ab1f2af513e802f7cf1ccefb1c53d8bf62afd Mon Sep 17 00:00:00 2001 From: nea Date: Sun, 23 Jul 2023 15:52:37 +0200 Subject: Add rift health manager --- .../java/com/thatgravyboat/skyblockhud/location/RiftHandler.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/main/java/com/thatgravyboat/skyblockhud/location') diff --git a/src/main/java/com/thatgravyboat/skyblockhud/location/RiftHandler.java b/src/main/java/com/thatgravyboat/skyblockhud/location/RiftHandler.java index dfd225e..5ae1407 100644 --- a/src/main/java/com/thatgravyboat/skyblockhud/location/RiftHandler.java +++ b/src/main/java/com/thatgravyboat/skyblockhud/location/RiftHandler.java @@ -4,10 +4,11 @@ import net.minecraftforge.client.event.ClientChatReceivedEvent; import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; public class RiftHandler { + public static boolean isInRift = false; + @SubscribeEvent public void onActionBar(ClientChatReceivedEvent event) { if (event.type != 2) return; - // §741m30sф Left §b160/160✎ Mana + isInRift = event.message.getUnformattedText().contains("ф Left"); } - } -- cgit