Fix `dumpnodes` crash on deprecated tile field name
This commit is contained in:
parent
c81cda24d3
commit
7af222dd9d
|
@ -1,7 +1,7 @@
|
||||||
local function get_tile(tiles, n)
|
local function get_tile(tiles, n)
|
||||||
local tile = tiles[n]
|
local tile = tiles[n]
|
||||||
if type(tile) == 'table' then
|
if type(tile) == 'table' then
|
||||||
return tile.name
|
return tile.name or tile.image
|
||||||
end
|
end
|
||||||
return tile
|
return tile
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue