mirror of
https://git.kittycat.homes/zoe/codename-routes.git
synced 2024-08-15 03:18:26 +00:00
call deferred to prevent reentry into atmosphere
This commit is contained in:
parent
8de6d3bdb9
commit
aa07bdd798
4 changed files with 12 additions and 9 deletions
|
@ -18,9 +18,15 @@ func respawn_tilemaps(amount):
|
|||
add_child(Tilemap.instance())
|
||||
tilemaps.push_back(tile)
|
||||
|
||||
func get_tile_at(pos: Vector3) -> String:
|
||||
return server.get_tile_at(int(pos.x), int(pos.y), int(pos.z))
|
||||
|
||||
func update_tiles(tile_positions: Array):
|
||||
print(tile_positions[1])
|
||||
print(get_tile_at(Vector3(0,0,0)))
|
||||
|
||||
func _on_StateServer_request_init():
|
||||
respawn_tilemaps(zsize - 1)
|
||||
|
||||
func _on_StateServer_changed_tiletypes(tile_positions: Array):
|
||||
print(tile_positions[2])
|
||||
print(server.get_tile_at(0,0,0))
|
||||
call_deferred("update_tiles", tile_positions)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue