diff --git a/world.gd b/world.gd index 4dfabee..a8252d2 100644 --- a/world.gd +++ b/world.gd @@ -54,7 +54,7 @@ func cell_is_alive(pos: Vector2) -> bool: elif currently_alive and (neighbors == 2 or neighbors == 3): return true # Rule 3 - Any live cell with more than three live neighbours dies (overpopulation) - if currently_alive and neighbors > 3: + elif currently_alive and neighbors > 3: return false # Rule 4 - Any dead cell with epos.xactly three live neighbours becomes a live cell (reproduction) elif not currently_alive and neighbors == 3: