From 6494b74a45e27085fd81836f7b8c969431e8ff3c Mon Sep 17 00:00:00 2001 From: nsensfel Date: Mon, 26 Feb 2018 17:16:08 +0100 Subject: Got it to work, I think. --- src/reply/set_map.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/reply/set_map.erl') diff --git a/src/reply/set_map.erl b/src/reply/set_map.erl index ba1ddbb..5a2cf55 100644 --- a/src/reply/set_map.erl +++ b/src/reply/set_map.erl @@ -19,7 +19,7 @@ encode (Battlemap) -> [ {<<"w">>, battlemap:get_width(Battlemap)}, {<<"h">>, battlemap:get_height(Battlemap)}, - {<<"t">>, array:to_list(battlemap:list_tiles(Battlemap))} + {<<"t">>, array:sparse_to_list(battlemap:get_tile_ids(Battlemap))} ] } ). -- cgit v1.2.3-70-g09d2