Skip to content
Snippets Groups Projects
Commit 29ec26a4 authored by auouymous's avatar auouymous Committed by Vitaliy
Browse files

Prevent unauthorized players from toggling blinky plant.

parent 0d86f2c4
No related branches found
No related tags found
No related merge requests found
......@@ -32,7 +32,13 @@ mesecon.register_node("mesecons_blinkyplant:blinky_plant", {
fixed = {-0.3, -0.5, -0.3, 0.3, -0.5+0.7, 0.3},
},
on_timer = on_timer,
on_rightclick = toggle_timer,
on_rightclick = function(pos, node, clicker)
if minetest.is_protected(pos, clicker and clicker:get_player_name()) then
return
end
toggle_timer(pos)
end,
on_construct = toggle_timer
},{
tiles = {"jeija_blinky_plant_off.png"},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment