mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Add backwards compatability for InventoryChanged
The output of `getUnitLoadout` is different as `getAllGear`. Using a different format in the event would mean that any eventhandler depending on the inventory output would now be broken.
This commit is contained in:
parent
cc9e128e74
commit
32055401d3
@ -385,7 +385,7 @@ GVAR(OldIsCamera) = false;
|
|||||||
if !(_data isEqualTo GVAR(OldPlayerInventory)) then {
|
if !(_data isEqualTo GVAR(OldPlayerInventory)) then {
|
||||||
// Raise ACE event locally
|
// Raise ACE event locally
|
||||||
GVAR(OldPlayerInventory) = _data;
|
GVAR(OldPlayerInventory) = _data;
|
||||||
["playerInventoryChanged", [ACE_player, _data]] call FUNC(localEvent);
|
["playerInventoryChanged", [ACE_player, [ACE_player, false] call FUNC(getAllGear) ]] call FUNC(localEvent);
|
||||||
};
|
};
|
||||||
|
|
||||||
// "playerVisionModeChanged" event
|
// "playerVisionModeChanged" event
|
||||||
|
Loading…
Reference in New Issue
Block a user