Skip to content
Snippets Groups Projects
Commit 6a2dd762 authored by tenplus1's avatar tenplus1 Committed by Milan
Browse files

add nil check for digger when using crystal shovel

parent 8a38e99f
No related branches found
No related tags found
No related merge requests found
......@@ -171,7 +171,8 @@ local old_handle_node_drops = minetest.handle_node_drops
function minetest.handle_node_drops(pos, drops, digger)
-- are we holding Crystal Shovel?
if digger:get_wielded_item():get_name() ~= "ethereal:shovel_crystal" then
if not digger
or digger:get_wielded_item():get_name() ~= "ethereal:shovel_crystal" then
return old_handle_node_drops(pos, drops, digger)
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment