diff options
author | nea <nea@nea.moe> | 2023-07-23 15:52:37 +0200 |
---|---|---|
committer | nea <nea@nea.moe> | 2023-07-23 15:52:46 +0200 |
commit | 162ab1f2af513e802f7cf1ccefb1c53d8bf62afd (patch) | |
tree | a8c55ce65e91c34cebac4902073ee3985c5c1c32 /src/main/java/com/thatgravyboat/skyblockhud/location | |
parent | c4fc3d5b4783a4f9cdc2079736880af55e26ca65 (diff) | |
download | SkyblockHud-Death-Defied-162ab1f2af513e802f7cf1ccefb1c53d8bf62afd.tar.gz SkyblockHud-Death-Defied-162ab1f2af513e802f7cf1ccefb1c53d8bf62afd.tar.bz2 SkyblockHud-Death-Defied-162ab1f2af513e802f7cf1ccefb1c53d8bf62afd.zip |
Add rift health manager
Diffstat (limited to 'src/main/java/com/thatgravyboat/skyblockhud/location')
-rw-r--r-- | src/main/java/com/thatgravyboat/skyblockhud/location/RiftHandler.java | 5 |
1 files changed, 3 insertions, 2 deletions
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"); } - } |