Исправь ошибку
- Error while compiling XSkinMenu: 'PlayerInventory' does not contain a definition for 'FindItemIDs' and no accessible extension method 'FindItemIDs' accepting a first argument of type 'PlayerInventory' could be found (are you missing a using directive or an assembly reference?) | Line: 883, Pos: 48
private void SetSkinItem(BasePlayer player, string item, ulong skin)
{
foreach (var i in player.inventory.FindItemIDs(ItemManager.FindItemDefinition(item).itemid))
{
if (i.skin == skin || config.Setting.Blacklist.Contains(i.skin)) continue;
if (errorskins.ContainsKey(skin))
{
i.UseItem();
Item newitem = ItemManager.CreateByName(errorskins[skin]);
newitem.condition = i.condition;
newitem.maxCondition = i.maxCondition;
if (i.contents != null)
foreach (var module in i.contents.itemList)
{
Item content = ItemManager.CreateByName(module.info.shortname, module.amount);
content.condition = module.condition;
content.maxCondition = module.maxCondition;
content.MoveToContainer(newitem.contents);
}
player.GiveItem(newitem);
}
else
{
i.skin = skin;
i.MarkDirty();
BaseEntity entity = i.GetHeldEntity();
if (entity != null)
{
entity.skinID = skin;
entity.SendNetworkUpdate();
}
}
}
}