From e6f75144c20ab49ab4268d0fd2b4ce80d3098ac0 Mon Sep 17 00:00:00 2001 From: Gerkiz Date: Mon, 18 Sep 2023 21:58:47 +0200 Subject: [PATCH] ICW - minor change --- maps/mountain_fortress_v3/icw/linked_chests.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/maps/mountain_fortress_v3/icw/linked_chests.lua b/maps/mountain_fortress_v3/icw/linked_chests.lua index 3b3fbc1a..8af01b91 100644 --- a/maps/mountain_fortress_v3/icw/linked_chests.lua +++ b/maps/mountain_fortress_v3/icw/linked_chests.lua @@ -65,6 +65,10 @@ local remove_all_linked_items_token = ) local function create_message(player, action, source_position, destination_position) + if not this.notify_discord then + return + end + local data = { title = 'Mountain_fortress_v3', description = 'Linked chests action was triggered.', @@ -1215,6 +1219,7 @@ function Public.reset() this.converted_chests = 0 this.convert_enabled = false this.cost_to_convert = 500 + this.notify_discord = false end Event.add(defines.events.on_built_entity, on_built_entity)