mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Read server modules before "SettingsInitialized" on clients
This commit is contained in:
parent
b61bd1fb75
commit
8abd488a43
@ -266,7 +266,7 @@ GVAR(commonPostInited) = true;
|
||||
if !(SLX_XEH_MACHINE select 8) exitWith {};
|
||||
|
||||
// If settings are not initialized then wait
|
||||
if (isNil QGVAR(settings)) exitWith {
|
||||
if (isNil QGVAR(settings) || {(!isServer) && (isNil QEGVAR(modules,serverModulesRead))}) exitWith {
|
||||
if (!_waitingMsgSent) then {
|
||||
_args set [0, true];
|
||||
diag_log text format["[ACE] Waiting on settings from server"];
|
||||
|
@ -43,4 +43,9 @@
|
||||
};
|
||||
};
|
||||
}foreach GVAR(moduleInitCollection);
|
||||
|
||||
if (isServer) then {
|
||||
GVAR(serverModulesRead) = true;
|
||||
publicVariable QGVAR(serverModulesRead);
|
||||
};
|
||||
}] call EFUNC(common,addEventhandler);
|
||||
|
Loading…
Reference in New Issue
Block a user