From 50039fe67d14afedea93629718959fb38bd675a2 Mon Sep 17 00:00:00 2001 From: tenplus1 Date: Thu, 27 Jun 2024 15:25:28 +0100 Subject: [PATCH] fix on_dig function when using lava pick --- lava_flan.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lava_flan.lua b/lava_flan.lua index 98a1d4a..84574f8 100644 --- a/lava_flan.lua +++ b/lava_flan.lua @@ -138,8 +138,9 @@ local old_handle_node_drops = minetest.handle_node_drops function minetest.handle_node_drops(pos, drops, digger) - -- are we holding Lava Pick? - if digger and digger:get_wielded_item():get_name() ~= ("mobs:pick_lava") then + -- are we the player holding a Lava Pick? + if not digger + or (digger and digger:get_wielded_item():get_name() ~= ("mobs:pick_lava")) then return old_handle_node_drops(pos, drops, digger) end