From 0ed48b251c546b898dae46af45894870fce05051 Mon Sep 17 00:00:00 2001 From: Gerkiz Date: Tue, 5 Nov 2024 20:11:43 +0100 Subject: [PATCH] Fix autostash --- modules/autostash.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/autostash.lua b/modules/autostash.lua index 445564e1..7e8c47ae 100644 --- a/modules/autostash.lua +++ b/modules/autostash.lua @@ -862,7 +862,7 @@ if script.active_mods['MtnFortressAddons'] then end) Event.add("mtn-ctrl-autostash-furnaces", function (event) - local is_spamming = SpamProtection.is_spamming(player, nil, 'Autostash click') + local is_spamming = SpamProtection.is_spamming(event.player, nil, 'Autostash click') if is_spamming then return end @@ -889,7 +889,7 @@ if script.active_mods['MtnFortressAddons'] then end) Event.add("mtn-ctrl-autostash-filtered", function (event) - local is_spamming = SpamProtection.is_spamming(player, nil, 'Autostash click') + local is_spamming = SpamProtection.is_spamming(event.player, nil, 'Autostash click') if is_spamming then return end @@ -916,7 +916,7 @@ if script.active_mods['MtnFortressAddons'] then end) Event.add("mtn-ctrl-autostash-wagon", function (event) - local is_spamming = SpamProtection.is_spamming(player, nil, 'Autostash click') + local is_spamming = SpamProtection.is_spamming(event.player, nil, 'Autostash click') if is_spamming then return end