aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/com/dulkirfabric/features/ArachneFeatures.kt
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/ArachneFeatures.kt
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/ArachneFeatures.kt')
-rw-r--r--src/main/kotlin/com/dulkirfabric/features/ArachneFeatures.kt6
1 files changed, 3 insertions, 3 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) {