From eb306b9f360c84d6f5d57861d3c3d1786e3ed47a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=93=D0=B5=D1=80=D1=85=D0=B0=D1=80=D0=B4=20PICCORO=20Len?= =?UTF-8?q?z=20McKAY?= Date: Wed, 3 Nov 2021 08:54:42 -0400 Subject: [PATCH] Fix nodes dropping the wrong item * Regression from minetest#5819 which caused handle_node_drops to ignore drops in a node's definition. * backported da2b5212d12802a566f0fd13e257bf8ebe674f5a --- builtin/game/item.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin/game/item.lua b/builtin/game/item.lua index ea9681ae2..12c43ae5b 100644 --- a/builtin/game/item.lua +++ b/builtin/game/item.lua @@ -563,7 +563,7 @@ function core.node_dig(pos, node, digger) .. node.name .. " at " .. core.pos_to_string(pos)) local wielded = digger and digger:get_wielded_item() - local drops = core.get_node_drops(node, wielded and wielded:get_name()) + local drops = core.get_node_drops(node.name, wielded and wielded:get_name()) if wielded then local wdef = wielded:get_definition()