mirror of
https://github.com/ComfyFactory/ComfyFactorio.git
synced 2025-02-05 13:15:03 +02:00
omg that bug
This commit is contained in:
parent
d553a73020
commit
57291b76d5
@ -296,10 +296,13 @@ function Public.join_spectators(player, crewid)
|
|||||||
if not _DEBUG then
|
if not _DEBUG then
|
||||||
memory.tempbanned_from_joining_data[player.index] = game.tick
|
memory.tempbanned_from_joining_data[player.index] = game.tick
|
||||||
end
|
end
|
||||||
-- if #Common.crew_get_crew_members() == 0 then
|
|
||||||
-- memory.crew_disband_tick = game.tick + 30
|
if #Common.crew_get_crew_members() == 0 then
|
||||||
-- -- memory.crew_disband_tick = game.tick + 60*60*2 --give players time to log back in after a crash or save
|
if Common.autodisband_ticks then
|
||||||
-- end
|
memory.crew_disband_tick = game.tick + Common.autodisband_ticks
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
if not (memory.difficulty_votes) then memory.difficulty_votes = {} end
|
if not (memory.difficulty_votes) then memory.difficulty_votes = {} end
|
||||||
memory.difficulty_votes[player.index] = nil
|
memory.difficulty_votes[player.index] = nil
|
||||||
end
|
end
|
||||||
@ -332,7 +335,6 @@ function Public.leave_spectators(player, quiet)
|
|||||||
if Common.autodisband_ticks then
|
if Common.autodisband_ticks then
|
||||||
memory.crew_disband_tick = game.tick + Common.autodisband_ticks
|
memory.crew_disband_tick = game.tick + Common.autodisband_ticks
|
||||||
end
|
end
|
||||||
if _DEBUG then memory.crew_disband_tick = game.tick + 30*60*60 end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
player.force = Common.lobby_force_name
|
player.force = Common.lobby_force_name
|
||||||
@ -512,7 +514,7 @@ function Public.leave_crew(player, to_lobby, quiet)
|
|||||||
Roles.player_left_so_redestribute_roles(player)
|
Roles.player_left_so_redestribute_roles(player)
|
||||||
|
|
||||||
if #Common.crew_get_crew_members() == 0 then
|
if #Common.crew_get_crew_members() == 0 then
|
||||||
local exists_disband_tick = memory.crew_disband_tick and memory.crew_disband_trick > game.tick
|
local exists_disband_tick = memory.crew_disband_tick and memory.crew_disband_tick > game.tick
|
||||||
|
|
||||||
if Common.autodisband_ticks and not exists_disband_tick then
|
if Common.autodisband_ticks and not exists_disband_tick then
|
||||||
memory.crew_disband_tick = game.tick + Common.autodisband_ticks
|
memory.crew_disband_tick = game.tick + Common.autodisband_ticks
|
||||||
|
Loading…
x
Reference in New Issue
Block a user