diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-08-29 22:32:25 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-08-29 22:32:25 +0200 |
commit | fc8016345d63a42d740e290ba7717d06444d2e8f (patch) | |
tree | 4aae3e324d04c436440fafb575cb689861a9ce84 /src/main/java/at/hannibal2/skyhanni/features/rift | |
parent | e30585a3323be457dea81b4bc33b020c8547cf54 (diff) | |
download | skyhanni-fc8016345d63a42d740e290ba7717d06444d2e8f.tar.gz skyhanni-fc8016345d63a42d740e290ba7717d06444d2e8f.tar.bz2 skyhanni-fc8016345d63a42d740e290ba7717d06444d2e8f.zip |
using kotlin duration in TitleUtils
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/rift')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/rift/area/wyldwoods/ShyCruxWarnings.kt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/rift/area/wyldwoods/ShyCruxWarnings.kt b/src/main/java/at/hannibal2/skyhanni/features/rift/area/wyldwoods/ShyCruxWarnings.kt index ad38e3cfe..84808625a 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/rift/area/wyldwoods/ShyCruxWarnings.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/rift/area/wyldwoods/ShyCruxWarnings.kt @@ -6,6 +6,7 @@ import at.hannibal2.skyhanni.features.rift.RiftAPI import at.hannibal2.skyhanni.utils.EntityUtils import at.hannibal2.skyhanni.utils.LocationUtils.distanceToPlayer import net.minecraftforge.fml.common.eventhandler.SubscribeEvent +import kotlin.time.Duration.Companion.milliseconds class ShyCruxWarnings { private val config get() = RiftAPI.config.area.wyldWoodsConfig @@ -21,7 +22,7 @@ class ShyCruxWarnings { private fun checkForShy() { if (EntityUtils.getAllEntities().any { it.name in shyNames && it.distanceToPlayer() < 8 }) { - TitleUtils.sendTitle("§eLook away!", 150) + TitleUtils.sendTitle("§eLook away!", 150.milliseconds) } } }
\ No newline at end of file |