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