formspec can only write data to actual protection nodes
This commit is contained in:
parent
4e969981e0
commit
534364e9c3
1 changed files with 8 additions and 0 deletions
8
init.lua
8
init.lua
|
|
@ -535,6 +535,14 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- are we adding member to a protection node ? (csm protection)
|
||||||
|
local nod = minetest.get_node(pos).name
|
||||||
|
|
||||||
|
if nod ~= "protector:protect"
|
||||||
|
and nod ~= "protector:protect2" then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
-- add member [+]
|
-- add member [+]
|
||||||
if fields.protector_add_member then
|
if fields.protector_add_member then
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue