fix crash when triggering explosions (error in type checking)

This commit is contained in:
Alexander Minges 2020-05-06 19:17:10 +02:00
parent 8c20dfa5d2
commit 4d98f11017
1 changed files with 1 additions and 1 deletions

View File

@ -320,7 +320,7 @@ local function trace_explode(pos, strength, raydirs, radius, drop_chance, fire,
local drop = minetest.get_node_drops(name, "")
for _, item in ipairs(drop) do
if item ~= "string" then
if type(item) ~= "string" then
item = item:get_name() .. item:get_count()
end
minetest.add_item(npos, item)