Skip to content

Commit

Permalink
Fix autostash
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerkiz committed Nov 5, 2024
1 parent edf5a34 commit 0ed48b2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/autostash.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 0ed48b2

Please sign in to comment.