Make turns atomic, rather than reply-turn-per-event

This commit is contained in:
Tony Garnock-Jones 2021-05-31 12:05:00 +02:00
parent d6c8a80995
commit c7718b3ddd
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ public class Turn {
private void commit() {
if (_pending != null) {
_pending.forEach((ac, q) -> ac.execute(() -> q.forEach(f -> Turn.forActor(ac, f))));
_pending.forEach((ac, q) -> ac.execute(() -> Turn.forActor(ac, t -> q.forEach(f -> f.accept(t)))));
_pending = null;
}
_complete = true;