mirror of
https://github.com/minetest-mods/drawers.git
synced 2025-02-16 23:22:24 +01:00
Fix drawer controller formspec protection
This commit is contained in:
@ -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)
|
||||||
|
Reference in New Issue
Block a user