Possible pathfinder error fix

This commit is contained in:
Anuken
2025-04-27 15:32:43 -04:00
parent ec6740c8da
commit c5c1e519ba
2 changed files with 7 additions and 5 deletions

View File

@@ -1572,9 +1572,11 @@ public class ControlPathfinder implements Runnable{
}
//each update time (not total!) no longer than maxUpdate
for(FieldCache cache : fields.values()){
updateFields(cache, maxUpdate);
}
fields.eachValue(cache -> {
if(cache != null){
updateFields(cache, maxUpdate);
}
});
}
try{
@@ -1584,7 +1586,7 @@ public class ControlPathfinder implements Runnable{
return;
}
}catch(Throwable e){
e.printStackTrace();
Log.err(e);
}
}
}