forked from Mirrorlandia_minetest/mesecons
Prevent unauthorized players from toggling blinky plant.
This commit is contained in:
parent
0d86f2c45e
commit
29ec26a4c8
@ -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},
|
fixed = {-0.3, -0.5, -0.3, 0.3, -0.5+0.7, 0.3},
|
||||||
},
|
},
|
||||||
on_timer = on_timer,
|
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
|
on_construct = toggle_timer
|
||||||
},{
|
},{
|
||||||
tiles = {"jeija_blinky_plant_off.png"},
|
tiles = {"jeija_blinky_plant_off.png"},
|
||||||
|
Loading…
Reference in New Issue
Block a user