mirror of
https://git.minetest.land/Mineclonia/Mineclonia.git
synced 2024-11-16 01:55:03 +00:00
Explosions: Change item drop handler
This commit is contained in:
parent
9ee0ef5a8d
commit
2b5ddbd62d
1 changed files with 3 additions and 2 deletions
|
@ -359,9 +359,10 @@ local function trace_explode(pos, strength, raydirs, radius, drop_chance)
|
||||||
local drop = minetest.get_node_drops(name, "")
|
local drop = minetest.get_node_drops(name, "")
|
||||||
|
|
||||||
for _, item in ipairs(drop) do
|
for _, item in ipairs(drop) do
|
||||||
if type(item) == "string" then
|
if item ~= "string" then
|
||||||
minetest.add_item(npos, item)
|
item = item:get_name() .. item:get_count()
|
||||||
end
|
end
|
||||||
|
minetest.add_item(npos, item)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue