mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Cargo - Add check for invoking ace_cargoAdded
EH only if cargo was actually added (#10084)
Only invoke cargoAdded EH if cargo was actually added
This commit is contained in:
parent
7ea2aab2c9
commit
18ea360b1e
@ -41,6 +41,8 @@ if (_item isEqualType "") then {
|
||||
TRACE_1("loaded",_loaded);
|
||||
|
||||
// Invoke listenable event
|
||||
["ace_cargoAdded", [_item, _vehicle, _loaded]] call CBA_fnc_globalEvent;
|
||||
if (_loaded > 0) then {
|
||||
["ace_cargoAdded", [_item, _vehicle, _loaded]] call CBA_fnc_globalEvent;
|
||||
};
|
||||
|
||||
_loaded // return
|
||||
|
Loading…
Reference in New Issue
Block a user