mirror of
https://codeberg.org/tenplus1/mobs_monster.git
synced 2024-12-23 01:10:26 +01:00
fix on_dig function when using lava pick
This commit is contained in:
parent
11f8cbbe54
commit
50039fe67d
@ -138,8 +138,9 @@ local old_handle_node_drops = minetest.handle_node_drops
|
|||||||
|
|
||||||
function minetest.handle_node_drops(pos, drops, digger)
|
function minetest.handle_node_drops(pos, drops, digger)
|
||||||
|
|
||||||
-- are we holding Lava Pick?
|
-- are we the player holding a Lava Pick?
|
||||||
if digger and digger:get_wielded_item():get_name() ~= ("mobs:pick_lava") then
|
if not digger
|
||||||
|
or (digger and digger:get_wielded_item():get_name() ~= ("mobs:pick_lava")) then
|
||||||
return old_handle_node_drops(pos, drops, digger)
|
return old_handle_node_drops(pos, drops, digger)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user