aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/com/dulkirfabric/features
diff options
context:
space:
mode:
authoringlettronald <inglettronald@gmail.com>2023-07-23 15:01:47 -0500
committeringlettronald <inglettronald@gmail.com>2023-07-23 15:01:47 -0500
commitc36dd88ff83ff09d5941d6772b5eefff0cd10665 (patch)
treeff52d13bff786794bd1750095f09f28401b7a02c /src/main/kotlin/com/dulkirfabric/features
parent5cac8361bad69bcd535b996940c70ac21762f67a (diff)
downloadDulkirMod-Fabric-c36dd88ff83ff09d5941d6772b5eefff0cd10665.tar.gz
DulkirMod-Fabric-c36dd88ff83ff09d5941d6772b5eefff0cd10665.tar.bz2
DulkirMod-Fabric-c36dd88ff83ff09d5941d6772b5eefff0cd10665.zip
Add HUD elements for HP/Mana/Defenses/Stacks/Speed
Diffstat (limited to 'src/main/kotlin/com/dulkirfabric/features')
-rw-r--r--src/main/kotlin/com/dulkirfabric/features/ArachneFeatures.kt6
-rw-r--r--src/main/kotlin/com/dulkirfabric/features/EffigyDisplay.kt2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/main/kotlin/com/dulkirfabric/features/ArachneFeatures.kt b/src/main/kotlin/com/dulkirfabric/features/ArachneFeatures.kt
index 695e610..f573736 100644
--- a/src/main/kotlin/com/dulkirfabric/features/ArachneFeatures.kt
+++ b/src/main/kotlin/com/dulkirfabric/features/ArachneFeatures.kt
@@ -37,7 +37,7 @@ object ArachneFeatures {
private var bigboy: Boolean = false
@EventHandler
fun onRenderWorldLast(event: WorldRenderLastEvent) {
- if (TablistUtils.area != "Spider's Den") return
+ if (TablistUtils.persistentInfo.area != "Spider's Den") return
if (!DulkirConfig.configOptions.arachneKeeperWaypoints) return
keeperWaypoints.forEach {
WorldRenderUtils.renderWaypoint(it.name, event.context, it.pos)
@@ -47,7 +47,7 @@ object ArachneFeatures {
@EventHandler
fun onChat(event: ChatReceivedEvent) {
if (!DulkirConfig.configOptions.arachneSpawnTimer) return
- if (TablistUtils.area != "Spider's Den") return
+ if (TablistUtils.persistentInfo.area != "Spider's Den") return
val str = event.message.unformattedString.trim()
if (str matches spawnRegex) {
bigboy = false
@@ -67,7 +67,7 @@ object ArachneFeatures {
@EventHandler
fun onWorldRenderLast(event: WorldRenderLastEvent) {
if (!DulkirConfig.configOptions.arachneSpawnTimer) return
- if (TablistUtils.area != "Spider's Den") return
+ if (TablistUtils.persistentInfo.area != "Spider's Den") return
if (spawnmillis <=startmillis) return
var time: Int = if (bigboy) {
diff --git a/src/main/kotlin/com/dulkirfabric/features/EffigyDisplay.kt b/src/main/kotlin/com/dulkirfabric/features/EffigyDisplay.kt
index 257a200..b795b91 100644
--- a/src/main/kotlin/com/dulkirfabric/features/EffigyDisplay.kt
+++ b/src/main/kotlin/com/dulkirfabric/features/EffigyDisplay.kt
@@ -40,7 +40,7 @@ object EffigyDisplay {
fun checkEffigies(event: LongUpdateEvent) {
if (!DulkirConfig.configOptions.inactiveEffigyDisplay) return
if (!Utils.isInSkyblock()) return
- if (TablistUtils.area != "The Rift") {
+ if (TablistUtils.persistentInfo.area != "The Rift") {
effigyWaypoints.forEach { it.render = false }
return
}