New Update broke the plugin

Hey man, with this new big update the plugin wont load, and in the console show this error:

Failed compiling 'MLRSHellfire.cs':
1. '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?) [CS1061]
(MLRSHellfire 56 line 772)

When you have some time, if you can, please take a look at it to fix the error, thanks. 

Ok, ChatGpt gime a solution, just:

Change this:

var mlrsMissleContainer = player.inventory.AllItems()
.Where(item => item.HasAmmo(Rust.AmmoTypes.MLRS_ROCKET)).ToArray();

 

For this:

var items = new List<Item>();
player.inventory.GetAllItems(items);
var mlrsMissleContainer = items
.Where(item => item.HasAmmo(Rust.AmmoTypes.MLRS_ROCKET))
.ToArray();

 

Bye

Hello friends, please help me fix it.
I have such a mistake

 

Error while compiling UberTool: '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: 3432, Pos: 52

private void Stsr(BasePlayer player)
{
if (player == null) return;
foreach (Item item in player.inventory.AllItems().Where(x => x.IsValid()).ToList())
if (item.skin == Convert.ToUInt64(playerTools[0][2]) || item.skin == Convert.ToUInt64(playerTools[1][2]) || item.skin == Convert.ToUInt64(playerTools[2][2]))
{
if (removeItemsOnDeactivation)
{
item.RemoveFromContainer();
item.RemoveFromWorld();
item.Remove(0f);
}
else
{
item.skin = 0uL;
item.GetHeldEntity().skinID = 0uL;
item.name = string.Empty;
item.MarkDirty();
}
}

Plyrnf p = null;
if (!playerPrefs.playerData.TryGetValue(player.userID, out p))
{
Plyrnf info = new Plyrnf();
info.SF = scaleFactorDef;
info.DBG = 4;
info.DBS = 0UL;
playerPrefs.playerData.Add(player.userID, info);
}
}