mirror of
https://github.com/minetest/minetest_game.git
synced 2024-12-22 14:12:26 +01:00
TNT node drop particles: Only pick string tiles as fallback
This commit is contained in:
parent
9528c0f8b9
commit
edd033b708
@ -243,12 +243,12 @@ 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
|
||||
if def.tiles and type(def.tiles[1]) == "string" then
|
||||
texture = def.tiles[1]
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
minetest.add_particlespawner({
|
||||
amount = 64,
|
||||
|
Loading…
Reference in New Issue
Block a user