aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoringlettronald <inglettronald@gmail.com>2023-05-19 05:39:11 -0500
committeringlettronald <inglettronald@gmail.com>2023-05-19 05:39:11 -0500
commit6e1312acd491ea92144eff1da3652b968fd5fdcc (patch)
treeaed972b88bf98717933a9b4acb291c7656146dc6
parent5138c42fab92f23827d33a59977a38916a385474 (diff)
downloadDulkirMod-6e1312acd491ea92144eff1da3652b968fd5fdcc.tar.gz
DulkirMod-6e1312acd491ea92144eff1da3652b968fd5fdcc.tar.bz2
DulkirMod-6e1312acd491ea92144eff1da3652b968fd5fdcc.zip
slight performance fix
-rw-r--r--src/main/kotlin/dulkirmod/features/KeeperWaypoints.kt18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/main/kotlin/dulkirmod/features/KeeperWaypoints.kt b/src/main/kotlin/dulkirmod/features/KeeperWaypoints.kt
index a8770c2..f7e3ee7 100644
--- a/src/main/kotlin/dulkirmod/features/KeeperWaypoints.kt
+++ b/src/main/kotlin/dulkirmod/features/KeeperWaypoints.kt
@@ -11,20 +11,20 @@ import net.minecraftforge.fml.common.eventhandler.SubscribeEvent
import kotlin.math.max
object KeeperWaypoints {
+ val vec1 = Vec3(-208.5, 44.5, -259.5)
+ val vec2 = Vec3(-311.5, 43.5, -232.5)
+ val vec3 = Vec3(-230.5, 57.5, -307.5)
+ val vec4 = Vec3(-269.5, 47.5, -166.5)
+ val vec5 = Vec3(-292.5, 47.5, -167.5)
+ val vec6 = Vec3(-291.5, 47.5, -183.5)
+ val vec7 = Vec3(-282.5, 47.5, -195.5)
+ val vec8 = Vec3(-262.5, 49.5, -191.5)
+ val vec9 = Vec3(-269.5, 61.5, -159.5)
@SubscribeEvent
fun onWorldRenderLast(event: RenderWorldLastEvent) {
if (!DulkirConfig.keeperWaypoints) return
if (TabListUtils.area != "Spider's Den") return
- val vec1 = Vec3(-208.5, 44.5, -259.5)
- val vec2 = Vec3(-311.5, 43.5, -232.5)
- val vec3 = Vec3(-230.5, 57.5, -307.5)
- val vec4 = Vec3(-269.5, 47.5, -166.5)
- val vec5 = Vec3(-292.5, 47.5, -167.5)
- val vec6 = Vec3(-291.5, 47.5, -183.5)
- val vec7 = Vec3(-282.5, 47.5, -195.5)
- val vec8 = Vec3(-262.5, 49.5, -191.5)
- val vec9 = Vec3(-269.5, 61.5, -159.5)
val playerVec = mc.thePlayer.positionVector
val scale1 = max(1f, playerVec.distanceTo(vec1).toFloat()/10f)