From 3a65bcfbbbb7f23583e63ad31e3e6306e97db7fa Mon Sep 17 00:00:00 2001 From: SX <50966843+S-S-X@users.noreply.github.com> Date: Tue, 8 Jun 2021 05:39:25 +0300 Subject: [PATCH] Fix drawer controller formspec protection --- lua/controller.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lua/controller.lua b/lua/controller.lua index 0350d13..2087e1c 100644 --- a/lua/controller.lua +++ b/lua/controller.lua @@ -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)