Skip to content

Commit e1ab355

Browse files
committed
use kotlin random
1 parent 1679832 commit e1ab355

File tree

1 file changed

+2
-3
lines changed
  • common/src/main/kotlin/com/lambda/module/modules/player

1 file changed

+2
-3
lines changed

common/src/main/kotlin/com/lambda/module/modules/player/AntiAim.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ import com.lambda.util.math.distSq
3333
import net.minecraft.entity.Entity
3434
import net.minecraft.entity.player.PlayerEntity
3535
import net.minecraft.util.math.MathHelper.wrapDegrees
36-
import java.util.*
37-
import java.util.random.RandomGenerator
36+
import kotlin.random.Random
3837

3938
object AntiAim : Module(
4039
"AntiAim",
@@ -73,7 +72,7 @@ object AntiAim : Module(
7372
private var currentYaw = 0.0f
7473
private var currentPitch = 0.0f
7574

76-
private val random = Random.from(RandomGenerator.getDefault())
75+
private val random = Random(0)
7776
private var jitterRight = true
7877
private var jitterUp = true
7978
private var pitchingUp = true

0 commit comments

Comments
 (0)