Skip to content

Commit

Permalink
desc
Browse files Browse the repository at this point in the history
  • Loading branch information
NatureFreshMilk committed Feb 12, 2019
1 parent b27d928 commit 13bdbcd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ minetest.register_node("mesecons_protected_button:button_off", {
}
},
groups = {dig_immediate=2, mesecon_needs_receiver = 1},
description = "Button",
description = "Protected Button",
on_rightclick = function (pos, node, clicker)
if minetest.is_protected(pos, clicker:get_player_name()) then
return
end

minetest.swap_node(pos, {name = "mesecons_protected_button:button_on", param2=node.param2})
mesecon.receptor_on(pos, mesecon.rules.buttonlike_get(node))
minetest.sound_play("mesecons_button_push", {pos=pos})
Expand Down Expand Up @@ -92,7 +92,7 @@ minetest.register_node("mesecons_protected_button:button_on", {
},
groups = {dig_immediate=2, not_in_creative_inventory=1, mesecon_needs_receiver = 1},
drop = 'mesecons_protected_button:button_off',
description = "Button",
description = "Protected Button",
sounds = default.node_sound_stone_defaults(),
mesecons = {receptor = {
state = mesecon.state.on,
Expand Down

0 comments on commit 13bdbcd

Please sign in to comment.