From dca38747b720fd2f32313f96a929abb629a64af8 Mon Sep 17 00:00:00 2001 From: worldwidesorrow Date: Tue, 14 Jul 2020 16:55:00 -0500 Subject: [PATCH] Update publicEH.sqf Don't need to add the EH unless enabled. --- SQF/dayz_code/init/publicEH.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SQF/dayz_code/init/publicEH.sqf b/SQF/dayz_code/init/publicEH.sqf index a2c3f1ab3..fb7b27f42 100644 --- a/SQF/dayz_code/init/publicEH.sqf +++ b/SQF/dayz_code/init/publicEH.sqf @@ -94,7 +94,7 @@ if (isServer) then { "PVDZE_obj_Trade" addPublicVariableEventHandler {(_this select 1) spawn server_tradeObj}; "PVDZE_plr_DeathB" addPublicVariableEventHandler {(_this select 1) spawn server_deaths}; "PVDZE_handleSafeGear" addPublicVariableEventHandler {(_this select 1) call server_handleSafeGear}; - "PVDZE_cargoDrop" addPublicVariableEventHandler {(_this select 1) spawn server_cargoDrop}; + if (DZE_CargoDrop) then {"PVDZE_cargoDrop" addPublicVariableEventHandler {(_this select 1) spawn server_cargoDrop};}; if (dayz_groupSystem) then { "PVDZ_Server_UpdateGroup" addPublicVariableEventHandler {(_this select 1) spawn server_updateGroup}; };