From b72925f4945e41e464e54e75022562a1cd3d39d3 Mon Sep 17 00:00:00 2001 From: Markus Moenig Date: Sat, 3 Aug 2024 08:25:56 +0700 Subject: [PATCH] Tile drawing fix --- shared/src/tiledrawer.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/shared/src/tiledrawer.rs b/shared/src/tiledrawer.rs index 8de89c4b..5fbcad92 100644 --- a/shared/src/tiledrawer.rs +++ b/shared/src/tiledrawer.rs @@ -256,7 +256,9 @@ impl TileDrawer { } } } - } else if let Some(tile) = region.tiles.get(&(tile_x, tile_y)) { + } + + if let Some(tile) = region.tiles.get(&(tile_x, tile_y)) { for tile_index in 0..tile.layers.len() { if let Some(tile_uuid) = tile.layers[tile_index] { if let Some(data) = self.tiles.get(&tile_uuid) {