mirror of
https://github.com/ComfyFactory/ComfyFactorio.git
synced 2024-12-28 23:06:38 +02:00
Fix autostash
This commit is contained in:
parent
edf5a347d5
commit
0ed48b251c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user