mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-26 06:29:23 +01:00
Adds MC initialization stages. Earlier stages can fire while later ones init. Fixes tgui chat reconnection banner showing during init. (#66473)
* Adds MC initialization stages. Earlier stages can fire while later ones init. Removes TICK_LIMIT_MC_INIT config for barely doing anything to speed up init and being inconvenient to work with if fires and inits can happen at the same time.
This commit is contained in:
@@ -240,6 +240,8 @@ GLOBAL_LIST_INIT(preference_entries_by_key, init_preference_entries_by_key())
|
||||
// things running pre-assets-initialization.
|
||||
if (!isnull(Master.current_initializing_subsystem))
|
||||
extra_info = "Info was attempted to be retrieved while [Master.current_initializing_subsystem] was initializing."
|
||||
else if (!MC_RUNNING())
|
||||
extra_info = "Info was attempted to be retrieved before the MC started, but not while it was actively initializing a subsystem"
|
||||
|
||||
CRASH("Preference type `[preference_type]` is invalid! [extra_info]")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user