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
This commit is contained in:
Герхард PICCORO Lenz McKAY 2021-11-03 08:54:42 -04:00
parent dc8d041819
commit eb306b9f36

View File

@ -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()