Fix dumpnodes crash on deprecated tile field name

This commit is contained in:
Saria 2023-04-08 16:32:29 +02:00 committed by sfan5
parent c81cda24d3
commit 7af222dd9d

@ -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