Arsenal - Fix custom categories not working for some Misc item types (#8088)

This commit is contained in:
Filip Maciejewski 2021-02-08 04:26:40 +01:00 committed by GitHub
parent b50a49c287
commit b8820eb3da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -289,13 +289,13 @@ switch (_ctrlIDC) do {
{ {
["CfgWeapons", _x, false, true] call _fnc_fill_right_Container; ["CfgWeapons", _x, false, true] call _fnc_fill_right_Container;
} foreach (GVAR(virtualItems) select 18); } foreach ((GVAR(virtualItems) select 18) select {!((toLower _x) in _blockItems)});
{ {
["CfgVehicles", _x, false, true] call _fnc_fill_right_Container; ["CfgVehicles", _x, false, true] call _fnc_fill_right_Container;
} foreach (GVAR(virtualItems) select 23); } foreach ((GVAR(virtualItems) select 23) select {!((toLower _x) in _blockItems)});
{ {
["CfgGlasses", _x, false, true] call _fnc_fill_right_Container; ["CfgGlasses", _x, false, true] call _fnc_fill_right_Container;
} foreach (GVAR(virtualItems) select 24); } foreach ((GVAR(virtualItems) select 24) select {!((toLower _x) in _blockItems)});
}; };
default { default {
@ -308,6 +308,16 @@ switch (_ctrlIDC) do {
{ {
["CfgWeapons", _x, true] call _fnc_fill_right_Container; ["CfgWeapons", _x, true] call _fnc_fill_right_Container;
} foreach ((GVAR(virtualItems) select 17) select {(toLower _x) in _items}); } foreach ((GVAR(virtualItems) select 17) select {(toLower _x) in _items});
{
["CfgWeapons", _x, false, true] call _fnc_fill_right_Container;
} foreach ((GVAR(virtualItems) select 18) select {(toLower _x) in _items});
{
["CfgVehicles", _x, false, true] call _fnc_fill_right_Container;
} foreach ((GVAR(virtualItems) select 23) select {(toLower _x) in _items});
{
["CfgGlasses", _x, false, true] call _fnc_fill_right_Container;
} foreach ((GVAR(virtualItems) select 24) select {(toLower _x) in _items});
}; };
}; };
}; };