Always set movement type to 2

This commit is contained in:
Akmal Fairuz
2025-06-28 06:49:40 +07:00
committed by GitHub
parent 0abc5c3694
commit a081dd463c

View File

@@ -110,10 +110,7 @@ type PlayerMovementSettings struct {
} }
func (p *PlayerMovementSettings) FromLatest(x protocol.PlayerMovementSettings) PlayerMovementSettings { func (p *PlayerMovementSettings) FromLatest(x protocol.PlayerMovementSettings) PlayerMovementSettings {
p.MovementType = 1
if p.RewindHistorySize > 0 {
p.MovementType = 2 p.MovementType = 2
}
p.RewindHistorySize = x.RewindHistorySize p.RewindHistorySize = x.RewindHistorySize
p.ServerAuthoritativeBlockBreaking = x.ServerAuthoritativeBlockBreaking p.ServerAuthoritativeBlockBreaking = x.ServerAuthoritativeBlockBreaking
return *p return *p