Update
This commit is contained in:
parent
18d44bcd35
commit
ff494a568c
@ -9,6 +9,7 @@ using EFT;
|
|||||||
using EFT.Visual;
|
using EFT.Visual;
|
||||||
using SkinHide.Patches;
|
using SkinHide.Patches;
|
||||||
using SkinHide.Utils;
|
using SkinHide.Utils;
|
||||||
|
using EFT.InventoryLogic;
|
||||||
|
|
||||||
namespace SkinHide
|
namespace SkinHide
|
||||||
{
|
{
|
||||||
@ -143,20 +144,7 @@ namespace SkinHide
|
|||||||
|
|
||||||
IEnumerable<object> slotList = ReflectionDatas.RefSlotList.GetValue(slotViews);
|
IEnumerable<object> slotList = ReflectionDatas.RefSlotList.GetValue(slotViews);
|
||||||
|
|
||||||
List<Dress> dresses = new List<Dress>();
|
IEnumerable<Dress> dresses = slotList.SelectMany(x => ReflectionDatas.RefDresses.GetValue(x)).Where(x => x != null);
|
||||||
|
|
||||||
foreach (object slot in slotList)
|
|
||||||
{
|
|
||||||
Dress[] dres = ReflectionDatas.RefDresses.GetValue(slot);
|
|
||||||
|
|
||||||
if (dres != null)
|
|
||||||
{
|
|
||||||
foreach (Dress dr in dres)
|
|
||||||
{
|
|
||||||
dresses.Add(dr);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
IEnumerable<Dress> dress = dresses.Where(x => x.GetType() == typeof(Dress));
|
IEnumerable<Dress> dress = dresses.Where(x => x.GetType() == typeof(Dress));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user