1
0
mirror of https://github.com/mt-mods/signs_lib.git synced 2025-07-15 13:50:26 +02:00

Compare commits

...

2 Commits

Author SHA1 Message Date
f7a4fefd34 Merge branch 'no_priv' into 'master'
Sign and land owners always able to edit a sign

See merge request VanessaE/signs_lib!4
2021-01-08 18:29:44 +00:00
664e99d34a Sign and land owners always able to edit a sign 2021-01-08 18:29:44 +00:00

View File

@ -623,11 +623,10 @@ end
function signs_lib.rightclick_sign(pos, node, player, itemstack, pointed_thing) function signs_lib.rightclick_sign(pos, node, player, itemstack, pointed_thing)
local playername = player:get_player_name() if not signs_lib.can_modify(pos, player) then return end
if not minetest.check_player_privs(playername, {signslib_edit = true}) then return end
player:get_meta():set_string("signslib:pos", minetest.pos_to_string(pos)) player:get_meta():set_string("signslib:pos", minetest.pos_to_string(pos))
minetest.show_formspec(playername, "signs_lib:sign", get_sign_formspec(pos, node.name)) minetest.show_formspec(player:get_player_name(), "signs_lib:sign", get_sign_formspec(pos, node.name))
end end
function signs_lib.destruct_sign(pos) function signs_lib.destruct_sign(pos)