From c06caa72092b41185646e83964e3523536b03d54 Mon Sep 17 00:00:00 2001 From: Glowbal Date: Tue, 28 Apr 2015 20:33:01 +0200 Subject: [PATCH] Only add JIP event for player clients --- addons/medical/XEH_postInit.sqf | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/addons/medical/XEH_postInit.sqf b/addons/medical/XEH_postInit.sqf index 1819178432..a3eb468442 100644 --- a/addons/medical/XEH_postInit.sqf +++ b/addons/medical/XEH_postInit.sqf @@ -269,7 +269,9 @@ if (USE_WOUND_EVENT_SYNC) then { // Networked litter [QGVAR(createLitter), FUNC(handleCreateLitter), GVAR(litterCleanUpDelay)] call EFUNC(common,addSyncedEventHandler); -["PlayerJip", { - diag_log format["[ACE] JIP Medical init for player"]; - [player] call FUNC(init); -}] call FUNC(addEventHandler); +if (hasInterface) then { + ["PlayerJip", { + diag_log format["[ACE] JIP Medical init for player"]; + [player] call FUNC(init); + }] call FUNC(addEventHandler); +};