mirror of
https://github.com/minetest-mods/drawers.git
synced 2024-11-22 06:33:44 +01:00
Fix drawer controller formspec protection
This commit is contained in:
parent
cbb5f42e7a
commit
3a65bcfbbb
@ -401,6 +401,9 @@ local function controller_on_digiline_receive(pos, _, channel, msg)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local function controller_on_receive_fields(pos, formname, fields, sender)
|
local function controller_on_receive_fields(pos, formname, fields, sender)
|
||||||
|
if core.is_protected(pos, sender:get_player_name()) then
|
||||||
|
return
|
||||||
|
end
|
||||||
local meta = core.get_meta(pos)
|
local meta = core.get_meta(pos)
|
||||||
if fields.saveChannel then
|
if fields.saveChannel then
|
||||||
meta:set_string("digilineChannel", fields.digilineChannel)
|
meta:set_string("digilineChannel", fields.digilineChannel)
|
||||||
|
Loading…
Reference in New Issue
Block a user