Flip curTime and NextUpdate in UpdateGrid (#17306)

This commit is contained in:
Vordenburg
2023-06-13 20:37:51 -04:00
committed by GitHub
parent cbbebe22d8
commit 620678df98

View File

@@ -103,7 +103,7 @@ public sealed partial class PathfindingSystem
while (query.MoveNext(out var comp))
{
if (comp.DirtyChunks.Count == 0 ||
comp.NextUpdate < curTime ||
curTime < comp.NextUpdate ||
!TryComp<MapGridComponent>(comp.Owner, out var mapGridComp))
{
continue;