From 7af222dd9de079fc0efb8a7138997ea45da9d5e8 Mon Sep 17 00:00:00 2001 From: Saria Date: Sat, 8 Apr 2023 16:32:29 +0200 Subject: [PATCH] Fix `dumpnodes` crash on deprecated tile field name --- util/dumpnodes/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/dumpnodes/init.lua b/util/dumpnodes/init.lua index c494752..850e379 100644 --- a/util/dumpnodes/init.lua +++ b/util/dumpnodes/init.lua @@ -1,7 +1,7 @@ local function get_tile(tiles, n) local tile = tiles[n] if type(tile) == 'table' then - return tile.name + return tile.name or tile.image end return tile end