aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/thatgravyboat/skyblockhud/location/RiftHandler.java
blob: 5ae1407267b567bc7d8d414d4fce9c2e8e7ff00c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package com.thatgravyboat.skyblockhud.location;

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;
        isInRift = event.message.getUnformattedText().contains("ф Left");
    }
}