Skip to content

Commit

Permalink
Still calculate atRest if dirty
Browse files Browse the repository at this point in the history
  • Loading branch information
cam72cam committed Oct 6, 2023
1 parent c4ae6ee commit 4455896
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ public static void iterate(Map<UUID, SimulationState> states, Map<UUID, Simulati
consist.forEach(p -> p.state.dirty = true);
}

if (atRest) {
if (atRest && !dirty) {
// Copy existing states
for (Particle particle : consist) {
nextStateMap.put(particle.state.config.id, particle.state.next());
Expand Down

0 comments on commit 4455896

Please sign in to comment.