mirror of
https://github.com/mt-mods/homedecor_modpack.git
synced 2025-07-20 14:20:22 +02:00
Compare commits
1 Commits
2019-05-30
...
2019-05-31
Author | SHA1 | Date | |
---|---|---|---|
b3337921a1 |
@ -2,9 +2,10 @@
|
|||||||
local S = homedecor.gettext
|
local S = homedecor.gettext
|
||||||
|
|
||||||
function homedecor.toggle_switch(pos, node, clicker, itemstack, pointed_thing)
|
function homedecor.toggle_switch(pos, node, clicker, itemstack, pointed_thing)
|
||||||
if minetest.is_protected(pos, clicker:get_player_name()) then
|
if not clicker then return false end
|
||||||
minetest.record_protection_violation(pos,
|
local playername = clicker:get_player_name()
|
||||||
sender:get_player_name())
|
if minetest.is_protected(pos, playername) then
|
||||||
|
minetest.record_protection_violation(pos, playername)
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
local sep = string.find(node.name, "_o", -5)
|
local sep = string.find(node.name, "_o", -5)
|
||||||
|
Reference in New Issue
Block a user