mirror of
https://github.com/minetest/minetestmapper.git
synced 2024-11-25 00:43:51 +01:00
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
Block a user