feat: Do set the station correctly
This commit is contained in:
parent
9ff32ea0df
commit
15c3b0ac8a
2
level.gd
2
level.gd
|
|
@ -72,7 +72,7 @@ func _ready() -> void:
|
||||||
var new_chunk = null
|
var new_chunk = null
|
||||||
if Vector2i(x,y) == station:
|
if Vector2i(x,y) == station:
|
||||||
new_chunk = station_scn.instantiate()
|
new_chunk = station_scn.instantiate()
|
||||||
if Vector2i(x,y) == spawn:
|
elif Vector2i(x,y) == spawn:
|
||||||
new_chunk = spawn_scn.instantiate()
|
new_chunk = spawn_scn.instantiate()
|
||||||
else:
|
else:
|
||||||
new_chunk = chunk_scn.instantiate()
|
new_chunk = chunk_scn.instantiate()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue