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:
parent
dc8d041819
commit
eb306b9f36
@ -563,7 +563,7 @@ function core.node_dig(pos, node, digger)
|
|||||||
.. node.name .. " at " .. core.pos_to_string(pos))
|
.. node.name .. " at " .. core.pos_to_string(pos))
|
||||||
|
|
||||||
local wielded = digger and digger:get_wielded_item()
|
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
|
if wielded then
|
||||||
local wdef = wielded:get_definition()
|
local wdef = wielded:get_definition()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user