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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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;