Any resolution on conflict with Kits ?

Hey guys, here i am with the same odd problem conflicting with kits.
 do we have a resolution on this ? any1 with a workaround besides reloading the plugin? 

my internal bool is set the way it supposely should be working : is that not right ? or there is a more recent problem ? 

internal bool HasSpaceForItems(BasePlayer player)
{
int wearSpacesFree = 7 - player.inventory.containerWear.itemList.Count;
int mainSpacesFree = 24 - player.inventory.containerMain.itemList.Count;
int beltSpacesFree = 6 - player.inventory.containerBelt.itemList.Count;

return (wearSpacesFree >= WearItems.Length &&
beltSpacesFree >= BeltItems.Length &&
mainSpacesFree >= MainItems.Length) || ItemCount <= mainSpacesFree + beltSpacesFree;
}



Merged post

@nivex any advise on this one ? 
                internal bool HasSpaceForItems(BasePlayer player)
                {
                    int wearSpacesFree = player.inventory.containerWear.capacity - player.inventory.containerWear.itemList.Count;
                    int mainSpacesFree = player.inventory.containerMain.capacity - player.inventory.containerMain.itemList.Count;
                    int beltSpacesFree = player.inventory.containerBelt.capacity - player.inventory.containerBelt.itemList.Count;

                    return (wearSpacesFree >= WearItems.Length &&
                            beltSpacesFree >= BeltItems.Length &&
                            mainSpacesFree >= MainItems.Length) || ItemCount <= mainSpacesFree + beltSpacesFree;
                }

iirc it needs to be this. it is checking hardcoded values of 7/24/6 which doesn't work because AntiItems increases that amount.

nivex
                internal bool HasSpaceForItems(BasePlayer player)
                {
                    int wearSpacesFree = player.inventory.containerWear.capacity - player.inventory.containerWear.itemList.Count;
                    int mainSpacesFree = player.inventory.containerMain.capacity - player.inventory.containerMain.itemList.Count;
                    int beltSpacesFree = player.inventory.containerBelt.capacity - player.inventory.containerBelt.itemList.Count;

                    return (wearSpacesFree >= WearItems.Length &&
                            beltSpacesFree >= BeltItems.Length &&
                            mainSpacesFree >= MainItems.Length) || ItemCount <= mainSpacesFree + beltSpacesFree;
                }

iirc it needs to be this. it is checking hardcoded values of 7/24/6 which doesn't work because AntiItems increases that amount.

tyvm, that worked ! 

no problem

is it just me or does this fix not work anymore after the last rust update

I tried this and it still works. would be nice if Kits plugin fixed the HasSpaceForItems method instead

if you updated to Kits 4.4.1 then you need to edit that .cs again with the above fix.