From 397d449f1e668ceb8939626e018fc98ef72abbd3 Mon Sep 17 00:00:00 2001 From: auouymous Date: Thu, 10 Dec 2020 03:53:50 -0700 Subject: Use empty string for protection check if puncher or clicker is nil. --- mesecons_blinkyplant/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mesecons_blinkyplant') diff --git a/mesecons_blinkyplant/init.lua b/mesecons_blinkyplant/init.lua index 3bad6a7..80b6b7e 100644 --- a/mesecons_blinkyplant/init.lua +++ b/mesecons_blinkyplant/init.lua @@ -33,7 +33,7 @@ mesecon.register_node("mesecons_blinkyplant:blinky_plant", { }, on_timer = on_timer, on_rightclick = function(pos, node, clicker) - if minetest.is_protected(pos, clicker and clicker:get_player_name()) then + if minetest.is_protected(pos, clicker and clicker:get_player_name() or "") then return end -- cgit v1.2.3