mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-23 08:29:34 +01:00
Add check for unknown nodes.
* Add check for unknown node in `handle_node_drops()` and return immediately if the dug node has no definition table.
This commit is contained in:
parent
962500b189
commit
88f7a150c7
1 changed files with 2 additions and 0 deletions
|
@ -256,6 +256,8 @@ function minetest.handle_node_drops(pos, drops, digger)
|
|||
|
||||
local silk_touch_drop = false
|
||||
local nodedef = minetest.registered_nodes[dug_node.name]
|
||||
if not nodedef then return end
|
||||
|
||||
if shearsy_level and shearsy_level > 0 and nodedef._mcl_shears_drop then
|
||||
if nodedef._mcl_shears_drop == true then
|
||||
drops = { dug_node.name }
|
||||
|
|
Loading…
Reference in a new issue