mirror of
https://notabug.org/TenPlus1/protector.git
synced 2025-01-09 17:07:30 +01:00
formspec can only write data to actual protection nodes
This commit is contained in:
parent
4e969981e0
commit
534364e9c3
8
init.lua
8
init.lua
@ -535,6 +535,14 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
|
||||
return
|
||||
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 [+]
|
||||
if fields.protector_add_member then
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user