mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-26 04:21:07 +01:00
Fix crash when triggering explosion (type check error)
This commit is contained in:
parent
fb55d33bfe
commit
ad70a71f8c
1 changed files with 1 additions and 1 deletions
|
@ -320,7 +320,7 @@ local function trace_explode(pos, strength, raydirs, radius, drop_chance, fire,
|
||||||
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 item ~= "string" then
|
if type(item) ~= "string" then
|
||||||
item = item:get_name() .. item:get_count()
|
item = item:get_name() .. item:get_count()
|
||||||
end
|
end
|
||||||
minetest.add_item(npos, item)
|
minetest.add_item(npos, item)
|
||||||
|
|
Loading…
Reference in a new issue