Can't compile after force wipe

HandyMan - Failed to compile: 'PlayerInventory' does not contain a definition for 'AllItems' and no accessible extension method 'AllItems' accepting a first argument of type 'PlayerInventory' could be found (are you missing a using directive or an assembly reference?) | Line: 32, Pos: 66

 

Anyone know how i can patch it? :)

Temporary fix. Replace line 32 with these:

 

bool HasResources(BasePlayer player)
{
    return player.inventory.containerMain.itemList.Any(item =>
        item.info.shortname == "wood" ||
        item.info.shortname == "metal.refined" ||
        item.info.shortname == "stones" ||
        item.info.shortname == "metal.fragments") ||

        player.inventory.containerBelt.itemList.Any(item =>
        item.info.shortname == "wood" ||
        item.info.shortname == "metal.refined" ||
        item.info.shortname == "stones" ||
        item.info.shortname == "metal.fragments");
}
JO72yySHxmVfdYo.jpg abcde

Temporary fix. Replace line 32 with these:

 

bool HasResources(BasePlayer player)
{
    return player.inventory.containerMain.itemList.Any(item =>
        item.info.shortname == "wood" ||
        item.info.shortname == "metal.refined" ||
        item.info.shortname == "stones" ||
        item.info.shortname == "metal.fragments") ||

        player.inventory.containerBelt.itemList.Any(item =>
        item.info.shortname == "wood" ||
        item.info.shortname == "metal.refined" ||
        item.info.shortname == "stones" ||
        item.info.shortname == "metal.fragments");
}

Thank you!