feat: Safety check in case next_chunk is not chunk... how tho?

This commit is contained in:
Dendy 2026-03-04 21:19:44 +01:00
parent 195a5e619f
commit 6d3fca7d81
1 changed files with 1 additions and 1 deletions

View File

@ -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)