Console ErrorSolved

Hi, I'm not familiar with rust mods and i don't know if i m missing something but i m getting this error:

Error while compiling WipeBlock: '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: 154

Line:

var item = player.inventory.AllItems().FirstOrDefault(x => x.GetHeldEntity() == weapon);

Just change the line for:


var item = player.inventory.containerMain.itemList.FirstOrDefault(x => x.GetHeldEntity() == weapon);
Locked automatically