From 872e0a9d58fdd0005e02b069dfe1242ec7e3b442 Mon Sep 17 00:00:00 2001 From: oof2win2 Date: Fri, 31 Dec 2021 15:46:12 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20workflow=20fix=3F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/deconlog.lua | 1 + modules/addons/deconlog.lua | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/config/deconlog.lua b/config/deconlog.lua index a19d15d8..ca46a0e1 100644 --- a/config/deconlog.lua +++ b/config/deconlog.lua @@ -1,3 +1,4 @@ +--- This config controls whether actions such as deconning by players without sufficient permissions is logged or not -- @config Deconlog return { diff --git a/modules/addons/deconlog.lua b/modules/addons/deconlog.lua index 41f72a71..4b2529d6 100644 --- a/modules/addons/deconlog.lua +++ b/modules/addons/deconlog.lua @@ -22,7 +22,7 @@ Event.on_init(function() game.write_file(filepath, "\n", false, 0) -- write data end) -if cofnig.decon_area then +if config.decon_area then Event.add(defines.events.on_player_deconstructed_area, function (e) local player = game.get_player(e.player_index) if Roles.player_has_flag(player, "deconlog-bypass") then return end