aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/moe/nea/firmament/features/diana
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-03-24 00:43:16 +0100
committerLinnea Gräf <nea@nea.moe>2024-03-24 00:43:16 +0100
commita84da715497215848797719fe528c2f5c1d4aed3 (patch)
tree3be839c8cf6fb080b7307919d94bb82666f79a7b /src/main/kotlin/moe/nea/firmament/features/diana
parent55586a64d7037cdc557b8b2c337d284ddb1ac981 (diff)
downloadfirmament-a84da715497215848797719fe528c2f5c1d4aed3.tar.gz
firmament-a84da715497215848797719fe528c2f5c1d4aed3.tar.bz2
firmament-a84da715497215848797719fe528c2f5c1d4aed3.zip
Add ordered waypoints (ColeWeight compat)
Diffstat (limited to 'src/main/kotlin/moe/nea/firmament/features/diana')
-rw-r--r--src/main/kotlin/moe/nea/firmament/features/diana/AncestralSpadeSolver.kt5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main/kotlin/moe/nea/firmament/features/diana/AncestralSpadeSolver.kt b/src/main/kotlin/moe/nea/firmament/features/diana/AncestralSpadeSolver.kt
index cd399b3..b9c83e6 100644
--- a/src/main/kotlin/moe/nea/firmament/features/diana/AncestralSpadeSolver.kt
+++ b/src/main/kotlin/moe/nea/firmament/features/diana/AncestralSpadeSolver.kt
@@ -6,7 +6,6 @@
package moe.nea.firmament.features.diana
-import org.joml.Vector3f
import kotlin.time.Duration.Companion.seconds
import net.minecraft.particle.ParticleTypes
import net.minecraft.sound.SoundEvents
@@ -33,6 +32,7 @@ object AncestralSpadeSolver {
fun isEnabled() =
DianaWaypoints.TConfig.ancestralSpadeSolver && SBData.skyblockLocation == "hub"
+
fun onKeyBind(event: WorldKeyboardEvent) {
if (!isEnabled()) return
if (!event.matches(DianaWaypoints.TConfig.ancestralSpadeTeleport)) return
@@ -99,8 +99,7 @@ object AncestralSpadeSolver {
color(1f, 1f, 0f, 0.5f)
tinyBlock(it, 1f)
color(1f, 1f, 0f, 1f)
- val cameraForward = Vector3f(0f, 0f, 1f).rotate(event.camera.rotation)
- line(event.camera.pos.add(Vec3d(cameraForward)), it, lineWidth = 3f)
+ tracer(it, lineWidth = 3f)
}
if (particlePositions.size > 2 && lastDing.passedTime() < 10.seconds && nextGuess != null) {
color(0f, 1f, 0f, 0.7f)