From 11f8cbbe544c7d7894af12fc4041d7c48b22affa Mon Sep 17 00:00:00 2001 From: tenplus1 Date: Tue, 25 Jun 2024 07:58:05 +0100 Subject: [PATCH] fix digger check --- lava_flan.lua | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lava_flan.lua b/lava_flan.lua index 9ffaa26..98a1d4a 100644 --- a/lava_flan.lua +++ b/lava_flan.lua @@ -138,11 +138,8 @@ local old_handle_node_drops = minetest.handle_node_drops function minetest.handle_node_drops(pos, drops, digger) - -- does player exist? - if not digger then return end - -- are we holding Lava Pick? - if digger:get_wielded_item():get_name() ~= ("mobs:pick_lava") then + if digger and digger:get_wielded_item():get_name() ~= ("mobs:pick_lava") then return old_handle_node_drops(pos, drops, digger) end