fix(PositionExtrapolation): returning wrong position at tick 0 (#6763)

This commit is contained in:
Izuna
2025-08-31 23:47:34 +02:00
committed by GitHub
parent 6088829340
commit f01046be40

View File

@@ -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
}
}