Fix drawer controller formspec protection

This commit is contained in:
SX 2021-06-08 05:39:25 +03:00 committed by Linus Jahn
parent cbb5f42e7a
commit 3a65bcfbbb

@ -401,6 +401,9 @@ local function controller_on_digiline_receive(pos, _, channel, msg)
end
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)
if fields.saveChannel then
meta:set_string("digilineChannel", fields.digilineChannel)