aboutsummaryrefslogtreecommitdiff
path: root/client/map/tile_factory.gd
diff options
context:
space:
mode:
Diffstat (limited to 'client/map/tile_factory.gd')
-rw-r--r--client/map/tile_factory.gd6
1 files changed, 5 insertions, 1 deletions
diff --git a/client/map/tile_factory.gd b/client/map/tile_factory.gd
index ad415cfc..1640e512 100644
--- a/client/map/tile_factory.gd
+++ b/client/map/tile_factory.gd
@@ -43,7 +43,11 @@ func produce(raw_name: String, position: Vector2i, neighbors: Array) -> Tile:
var ctx := TileCC.new()
ctx.tile_name = tile_name
ctx.position = position
- ctx.neighbors = neighbors.map(func(n): return null if n == null else TileName.new(n).name)
+ ctx.neighbors = neighbors.map(func(a):
+ if a != null:
+ return a.map(func(b): return null if b == null else TileName.new(b).name)
+ else: return null
+ )
ctx.floor_meshers = floor_meshers
match tile_name.name: