Fix lag compensation exception (#12243)
This commit is contained in:
@@ -57,6 +57,9 @@ public sealed class LagCompensationSystem : EntitySystem
|
||||
|
||||
private void OnLagMove(EntityUid uid, LagCompensationComponent component, ref MoveEvent args)
|
||||
{
|
||||
if (!args.NewPosition.EntityId.IsValid())
|
||||
return; // probably being sent to nullspace for deletion.
|
||||
|
||||
EnsureComp<ActiveLagCompensationComponent>(uid);
|
||||
component.Positions.Enqueue((_timing.CurTime, args.NewPosition, args.NewRotation));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user