Always set movement type to 2
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user