From 2b5ddbd62d9afe11ba4950d3c0e794a9726b0059 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Thu, 30 Apr 2020 20:58:58 +0200 Subject: [PATCH] Explosions: Change item drop handler --- mods/CORE/mcl_explosions/init.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mods/CORE/mcl_explosions/init.lua b/mods/CORE/mcl_explosions/init.lua index 02a7d7ae..a85d8c0f 100644 --- a/mods/CORE/mcl_explosions/init.lua +++ b/mods/CORE/mcl_explosions/init.lua @@ -359,9 +359,10 @@ local function trace_explode(pos, strength, raydirs, radius, drop_chance) local drop = minetest.get_node_drops(name, "") for _, item in ipairs(drop) do - if type(item) == "string" then - minetest.add_item(npos, item) + if item ~= "string" then + item = item:get_name() .. item:get_count() end + minetest.add_item(npos, item) end end end