Skip to content

Commit

Permalink
Fix events
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerkiz committed Dec 21, 2024
1 parent 9408567 commit e61a984
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions modules/autostash.lua
Original file line number Diff line number Diff line change
Expand Up @@ -809,7 +809,7 @@ Gui.on_click(
)

if script.active_mods['MtnFortressAddons'] then
Event.add("mtn-shift-autostash-all", function (event)
Event.add(defines.events["mtn-shift-autostash-all"], function (event)
local player = game.get_player(event.player_index)
if not player or not player.valid then
return
Expand All @@ -835,7 +835,7 @@ if script.active_mods['MtnFortressAddons'] then
auto_stash(player, event)
end)

Event.add("mtn-shift-autostash-ores", function (event)
Event.add(defines.events["mtn-shift-autostash-ores"], function (event)
local player = game.get_player(event.player_index)
if not player or not player.valid then
return
Expand All @@ -861,7 +861,7 @@ if script.active_mods['MtnFortressAddons'] then
auto_stash(player, event)
end)

Event.add("mtn-shift-autostash-furnaces", function (event)
Event.add(defines.events["mtn-shift-autostash-furnaces"], function (event)
local player = game.get_player(event.player_index)
if not player or not player.valid then
return
Expand All @@ -888,7 +888,7 @@ if script.active_mods['MtnFortressAddons'] then
auto_stash(player, event)
end)

Event.add("mtn-shift-autostash-filtered", function (event)
Event.add(defines.events["mtn-shift-autostash-filtered"], function (event)
local player = game.get_player(event.player_index)
if not player or not player.valid then
return
Expand All @@ -915,7 +915,7 @@ if script.active_mods['MtnFortressAddons'] then
auto_stash(player, event)
end)

Event.add("mtn-shift-autostash-wagon", function (event)
Event.add(defines.events["mtn-shift-autostash-wagon"], function (event)
local player = game.get_player(event.player_index)
if not player or not player.valid then
return
Expand Down
2 changes: 1 addition & 1 deletion modules/rpg/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1267,7 +1267,7 @@ Event.add(defines.events.on_player_respawned, on_player_respawned)
Event.add(defines.events.on_player_rotated_entity, on_player_rotated_entity)
Event.add(defines.events.on_pre_player_mined_item, on_pre_player_mined_item)
if script.active_mods['MtnFortressAddons'] then
Event.add('mtn-shift-cast-spell', on_player_used_capsule_custom)
Event.add(defines.events['mtn-shift-cast-spell'], on_player_used_capsule_custom)
end
Event.add(defines.events.on_player_used_capsule, on_player_used_capsule)
Event.add(defines.events.on_player_changed_surface, on_player_changed_surface)
Expand Down

0 comments on commit e61a984

Please sign in to comment.