From cabc45cd02d2159d89bb37fc29bf83a23e89b8f0 Mon Sep 17 00:00:00 2001 From: tpart Date: Thu, 26 Feb 2026 20:41:51 +0100 Subject: Fix kitchen background not working --- client/map/map.gd | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'client/map/map.gd') diff --git a/client/map/map.gd b/client/map/map.gd index afac0a1b..acf7c1a4 100644 --- a/client/map/map.gd +++ b/client/map/map.gd @@ -41,6 +41,10 @@ func get_tile_instance(pos: Vector2i) -> Tile: if e != null: return e.tile else: return null +func set_all_tiles(changes: Dictionary[Vector2i, Array]): + for pos: Vector2i in changes: + set_tiles(Vector2i(pos.x, pos.y), changes[pos], changes) + func set_tiles(pos: Vector2i, tiles: Array = [], pending_changes: Dictionary[Vector2i, Array] = {}): # tiles: Array[String] var inst = get_tile_instance(pos) if inst != null and not tiles.is_empty(): -- cgit v1.3