diff options
Diffstat (limited to 'client/map')
-rw-r--r-- | client/map/map.gd | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/map/map.gd b/client/map/map.gd index af80d9ac..32b267d7 100644 --- a/client/map/map.gd +++ b/client/map/map.gd @@ -5,11 +5,11 @@ var tile_by_pos: Dictionary = {} var baking = false func get_tile_name(pos: Vector2i): - var e = tile_by_pos[str(pos)] + var e = tile_by_pos.get(str(pos)) if e != null: return e[1] else: return null func get_tile_instance(pos: Vector2i) -> Tile: - var e = tile_by_pos[str(pos)] + var e = tile_by_pos.get(str(pos)) if e != null: return e[2] else: return null |