Use inventory_image for nodes without tiles for particles

This commit is contained in:
SmallJoker 2021-02-18 19:05:12 +01:00
parent 1fe580a210
commit f566d0ff26

@ -130,8 +130,8 @@ local function is_walkable(ground)
end end
local function create_particles(player, name, ground) local function create_particles(player, name, ground)
local def = minetest.registered_nodes[ground.name] local def = minetest.registered_nodes[ground.name] or {}
local tile = def.tiles[1] or def.inventory_image local tile = def.tiles and def.tiles[1] or def.inventory_image
if type(tile) == "table" then if type(tile) == "table" then
tile = tile.name tile = tile.name
end end