mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-01 02:14:27 +07:00
Fixed crash
This commit is contained in:
parent
fbf0fec135
commit
a0c373bec6
@ -92,7 +92,8 @@ public class ControlPathfinder{
|
||||
for(var req : requests.values()){
|
||||
//skipped N update -> drop it
|
||||
if(req.lastUpdateId <= state.updateId - 10){
|
||||
requests.remove(req.unit);
|
||||
//concurrent modification!
|
||||
Core.app.post(() -> requests.remove(req.unit));
|
||||
req.thread.queue.post(() -> req.thread.requests.remove(req));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user