Move littler syncedEH install to after settingInit

This commit is contained in:
PabstMirror 2016-01-14 17:06:46 -06:00
parent bcfac5db0b
commit 1affbd7d2f

View File

@ -246,6 +246,9 @@ GVAR(lastHeartBeatSound) = ACE_time;
};
["SettingsInitialized", {
// Networked litter (need to wait for GVAR(litterCleanUpDelay) to be set)
[QGVAR(createLitter), FUNC(handleCreateLitter), GVAR(litterCleanUpDelay)] call EFUNC(common,addSyncedEventHandler);
if (GVAR(level) == 2) exitWith {
[
{(((_this select 0) getVariable [QGVAR(bloodVolume), 100]) < 65)},
@ -276,9 +279,6 @@ GVAR(lastHeartBeatSound) = ACE_time;
[ACE_player] call FUNC(itemCheck);
}] call EFUNC(common,addEventHandler);
// Networked litter
[QGVAR(createLitter), FUNC(handleCreateLitter), GVAR(litterCleanUpDelay)] call EFUNC(common,addSyncedEventHandler);
if (hasInterface) then {
["PlayerJip", {
ACE_LOGINFO("JIP Medical init for player.");