diff --git a/server/session/handler_player_auth_input.go b/server/session/handler_player_auth_input.go index 15e43f751..bebd9acd9 100644 --- a/server/session/handler_player_auth_input.go +++ b/server/session/handler_player_auth_input.go @@ -61,6 +61,7 @@ func (h PlayerAuthInputHandler) handleMovement(pk *packet.PlayerAuthInput, s *Se s.teleportPos.Store(nil) } + s.moving = true c.Move(deltaPos, deltaYaw, deltaPitch) return nil } diff --git a/server/session/world.go b/server/session/world.go index e4628bb13..c56502561 100644 --- a/server/session/world.go +++ b/server/session/world.go @@ -190,7 +190,7 @@ func (s *Session) HideEntity(e world.Entity) { // ViewEntityMovement ... func (s *Session) ViewEntityMovement(e world.Entity, pos mgl64.Vec3, rot cube.Rotation, onGround bool) { id := s.entityRuntimeID(e) - if id == selfEntityRuntimeID || s.entityHidden(e) { + if (id == selfEntityRuntimeID && s.moving) || s.entityHidden(e) { return }