From 5e97ce57616bfe82595dd92827718fed5c795d76 Mon Sep 17 00:00:00 2001 From: Gerkiz Date: Sat, 22 Aug 2020 17:30:28 +0200 Subject: [PATCH] minor fix --- comfy_panel/config.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/comfy_panel/config.lua b/comfy_panel/config.lua index 636e8426..0ee0e84b 100644 --- a/comfy_panel/config.lua +++ b/comfy_panel/config.lua @@ -2,6 +2,7 @@ local Antigrief = require 'antigrief' local SessionData = require 'utils.datastore.session_data' +local Utils = require 'utils.core' local spaghett_entity_blacklist = { ['logistic-chest-requester'] = true, @@ -15,6 +16,7 @@ local function get_actor(event, action) return end print(player.name .. ' ' .. action) + Utils.action_warning('{Antigrief}', player.name .. ' has ' .. action .. ' the antigrief function.') end local function spaghett_deny_building(event) @@ -149,10 +151,10 @@ local antigrief_functions = { local AG = Antigrief.get() if event.element.switch_state == 'left' then AG.enabled = true - get_actor(event, 'enabled antigrief') + get_actor(event, 'enabled') else AG.enabled = false - get_actor(event, 'disabled antigrief') + get_actor(event, 'disabled') end trust_connected_players() end