From 6d3fca7d8184182b748f670b1a49940dce7a729b Mon Sep 17 00:00:00 2001 From: Dendy Faist Date: Wed, 4 Mar 2026 21:19:44 +0100 Subject: [PATCH] feat: Safety check in case next_chunk is not chunk... how tho? --- level.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/level.gd b/level.gd index e77c04a..0735386 100644 --- a/level.gd +++ b/level.gd @@ -89,7 +89,7 @@ func _ready() -> void: var curr_chunk = chunks[curr.x][curr.y] var next_chunk = chunks[next.x][next.y] if next else null - if not next_chunk: + if not next_chunk or next_chunk.scene_file_path != "res://chunk.tscn": continue var revdir = vector_to_dir(curr - next)