mirror of
https://github.com/CCBlueX/LiquidBounce.git
synced 2025-09-06 09:46:38 +00:00
fix(PositionExtrapolation): returning wrong position at tick 0 (#6763)
This commit is contained in:
@@ -52,10 +52,6 @@ class PlayerSimulationExtrapolation(private val simulation: SimulatedPlayerCache
|
||||
|
||||
override fun getPositionInTicks(ticks: Double): Vec3d {
|
||||
val ticks = max(0, round(ticks.coerceAtMost(30.0)).toInt())
|
||||
if (ticks == 0) {
|
||||
return this.simulation.simulatedPlayer.pos
|
||||
}
|
||||
|
||||
return this.simulation.getSnapshotAt(ticks).pos
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user