mirror of
https://github.com/ComfyFactory/ComfyFactorio.git
synced 2025-03-17 20:58:13 +02:00
hotfix for ddosing the db + bottom butons enabled
This commit is contained in:
parent
505c12c55d
commit
5c45d79ae0
@ -2,6 +2,9 @@
|
||||
local Map_functions = require 'tools.map_functions'
|
||||
local Server = require 'utils.server'
|
||||
local Get_noise = require 'utils.get_noise'
|
||||
local Autostash = require 'modules.autostash'
|
||||
local Misc = require 'utils.commands.misc'
|
||||
local BottomFrame = require 'utils.gui.bottom_frame'
|
||||
local Constants = require 'maps.journey.constants'
|
||||
local Unique_modifiers = require 'maps.journey.unique_modifiers'
|
||||
local Vacants = require 'modules.clear_vacant_players'
|
||||
@ -449,7 +452,7 @@ end
|
||||
|
||||
local function check_if_restarted(journey)
|
||||
local secs = Server.get_current_time()
|
||||
if not secs then
|
||||
if not secs or journey.import_checked then
|
||||
return
|
||||
else
|
||||
Server.try_get_data('scenario_settings', 'journey_updating', journey.check_import)
|
||||
@ -476,6 +479,11 @@ function Public.hard_reset(journey)
|
||||
return
|
||||
end
|
||||
Vacants.reset()
|
||||
BottomFrame.activate_custom_buttons(true)
|
||||
BottomFrame.reset()
|
||||
Autostash.insert_into_furnace(true)
|
||||
Autostash.bottom_button(true)
|
||||
Misc.bottom_button(true)
|
||||
if game.surfaces.mothership and game.surfaces.mothership.valid then
|
||||
game.delete_surface(game.surfaces.mothership)
|
||||
end
|
||||
@ -1126,6 +1134,7 @@ function Public.mothership_arrives_at_world(journey)
|
||||
journey.beacon_objective_resistance = 0.90 - (0.03 * journey.world_number)
|
||||
journey.emergency_triggered = false
|
||||
journey.emergency_selected = false
|
||||
journey.import_checked = false
|
||||
draw_background(journey, surface)
|
||||
Public.update_tooltips(journey)
|
||||
end
|
||||
|
@ -217,6 +217,7 @@ local function check_import(data)
|
||||
if data.key ~= 'journey_updating' then
|
||||
return
|
||||
end
|
||||
journey.import_checked = true
|
||||
local importing = data.value
|
||||
if importing then
|
||||
Functions.import_journey(journey)
|
||||
|
Loading…
x
Reference in New Issue
Block a user