Skip to content

Commit

Permalink
cleanup: change var to val in LaserMethods
Browse files Browse the repository at this point in the history
  • Loading branch information
scmcgowen committed Oct 3, 2024
1 parent 63ef463 commit ffc4759
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ object LaserMethods {
val yaw = Helpers.normaliseAngle(args.getFiniteDouble(0))
val pitch = Helpers.normaliseAngle(args.getFiniteDouble(1))
val potency = args.assertDoubleBetween(2, cfg.minimumPotency, cfg.maximumPotency, "Potency out of range (%s).").toFloat()
var canDestroyBlocks = args.optBoolean(3).orElse(true)
val canDestroyBlocks = args.optBoolean(3).orElse(true)
val motionX = -sin(yaw / 180.0f * PI.toFloat()) * cos(pitch / 180.0f * PI.toFloat())
val motionZ = cos(yaw / 180.0f * PI.toFloat()) * cos(pitch / 180.0f * PI.toFloat())
val motionY = -sin(pitch / 180.0f * PI.toFloat())
Expand Down

0 comments on commit ffc4759

Please sign in to comment.