🐛 workflow fix?

This commit is contained in:
oof2win2
2021-12-31 15:46:12 +01:00
parent ecc263faf8
commit 872e0a9d58
2 changed files with 2 additions and 1 deletions

View File

@@ -1,3 +1,4 @@
--- This config controls whether actions such as deconning by players without sufficient permissions is logged or not
-- @config Deconlog -- @config Deconlog
return { return {

View File

@@ -22,7 +22,7 @@ Event.on_init(function()
game.write_file(filepath, "\n", false, 0) -- write data game.write_file(filepath, "\n", false, 0) -- write data
end) end)
if cofnig.decon_area then if config.decon_area then
Event.add(defines.events.on_player_deconstructed_area, function (e) Event.add(defines.events.on_player_deconstructed_area, function (e)
local player = game.get_player(e.player_index) local player = game.get_player(e.player_index)
if Roles.player_has_flag(player, "deconlog-bypass") then return end if Roles.player_has_flag(player, "deconlog-bypass") then return end