Fix drawer controller formspec protection

fork-master
SX 2021-06-08 05:39:25 +03:00 committed by Linus Jahn
parent cbb5f42e7a
commit 3a65bcfbbb
1 changed files with 3 additions and 0 deletions

View File

@ -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)