1
0
mirror of https://github.com/minetest/minetest_game.git synced 2024-12-22 23:10:17 +01:00

TNT node drop particles: Only pick string tiles as fallback

This commit is contained in:
Lars Mueller 2022-04-24 12:30:16 +02:00
parent 5549b9585d
commit e86d0dff94

View File

@ -243,9 +243,9 @@ local function add_effects(pos, radius, drops)
local def = minetest.registered_nodes[name]
if def then
node = { name = name }
end
if def and def.tiles and def.tiles[1] then
texture = def.tiles[1]
if def.tiles and type(def.tiles[1]) == "string" then
texture = def.tiles[1]
end
end
end
end