File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
common/src/main/kotlin/com/lambda/module/modules/combat Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ import com.lambda.event.listener.SafeListener.Companion.listen
2727import com.lambda.graphics.renderer.esp.builders.ofBox
2828import com.lambda.graphics.renderer.esp.builders.ofShape
2929import com.lambda.interaction.RotationManager.rotate
30- import com.lambda.interaction.rotation.RotationContext
30+ import com.lambda.interaction.rotation.RotationRequest
3131import com.lambda.interaction.visibilty.VisibilityChecker.lookAtBlock
3232import com.lambda.module.Module
3333import com.lambda.module.tag.ModuleTag
@@ -108,14 +108,14 @@ object CrystalAura : Module(
108108 private val placementTargets = mutableListOf<PlacementTarget >()
109109 private val target: LivingEntity ? get() = targeting.target()
110110
111- private var currentRotation: RotationContext ? = null
111+ private var currentRotation: RotationRequest ? = null
112112
113113 init {
114114 listen<TickEvent .Pre > {
115115 currentRotation?.let { rotate ->
116116 if (! place) return @let
117117 if (! rotate.isValid) return @let
118- val blockHit = rotate.hitResult ?.blockResult ? : return @let
118+ val blockHit = rotate.checkedResult ?.blockResult ? : return @let
119119 val inMainHand = player.mainHandStack.item == Items .END_CRYSTAL
120120 val inOffHand = player.offHandStack.item == Items .END_CRYSTAL
121121 if (! inMainHand && ! inOffHand) return @let
You can’t perform that action at this time.
0 commit comments