mirror of
https://github.com/ComfyFactory/ComfyFactorio.git
synced 2025-02-09 13:37:02 +02:00
fix starting multiple private runs
This commit is contained in:
parent
91834b680b
commit
19f8c23ec7
@ -746,7 +746,7 @@ function Public.click(event)
|
||||
|
||||
-- check if the player created any other private runs
|
||||
for _, id in pairs(global_memory.crew_active_ids) do
|
||||
if global_memory.crew_memories[id].run_is_private then
|
||||
if global_memory.crew_memories[id].run_is_private and global_memory.crew_memories[id].created_by_player == player.index then
|
||||
Common.notify_player_error(player, { 'pirates.gui_runs_proposal_maker_error_two_private_runs' })
|
||||
return
|
||||
end
|
||||
@ -772,7 +772,7 @@ function Public.click(event)
|
||||
|
||||
-- check if the player created any other protected runs
|
||||
for _, id in pairs(global_memory.crew_active_ids) do
|
||||
if global_memory.crew_memories[id].run_is_protected then
|
||||
if global_memory.crew_memories[id].run_is_protected and global_memory.crew_memories[id].created_by_player == player.index then
|
||||
Common.notify_player_error(player, { 'pirates.gui_runs_proposal_maker_error_two_protected_runs' })
|
||||
return
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user