mirror of
https://github.com/minetest-mods/mesecons.git
synced 2025-06-28 22:06:03 +02:00
Use empty string for protection check if puncher or clicker is nil.
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user