TNT node drop particles: Only pick string tiles as fallback
This commit is contained in:
parent
5549b9585d
commit
e86d0dff94
|
@ -243,12 +243,12 @@ local function add_effects(pos, radius, drops)
|
||||||
local def = minetest.registered_nodes[name]
|
local def = minetest.registered_nodes[name]
|
||||||
if def then
|
if def then
|
||||||
node = { name = name }
|
node = { name = name }
|
||||||
end
|
if def.tiles and type(def.tiles[1]) == "string" then
|
||||||
if def and def.tiles and def.tiles[1] then
|
|
||||||
texture = def.tiles[1]
|
texture = def.tiles[1]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
minetest.add_particlespawner({
|
minetest.add_particlespawner({
|
||||||
amount = 64,
|
amount = 64,
|
||||||
|
|
Loading…
Reference in New Issue