Skip to content

Commit

Permalink
Fix dumpnodes crash on deprecated tile field name
Browse files Browse the repository at this point in the history
  • Loading branch information
RodentOfUnusualSize authored and sfan5 committed Apr 8, 2023
1 parent c81cda2 commit 7af222d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/dumpnodes/init.lua
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 7af222d

Please sign in to comment.