After the aug update plugin dosn't load and spits out this error
NightZombies.cs 384:60 There is no argument given that corresponds to the required parameter 'id' of 'PlayerInventory.FindItemsByItemID(List<Item>, int)'
NightZombies.cs 384:43 foreach statement cannot operate on variables of type 'void' because 'void' does not contain a public instance or extension definition for 'GetEnumera...
tor'
any ideas?
Stopped loading
*Not fully tested, but this compiles:
Replace this:
if (!_config.Behaviour.ThrowGrenades)
{
foreach (Item item in zombie.inventory.FindItemsByItemID(GrenadeItemId))
{
item.Remove();
}
ItemManager.DoRemoves();
}
With this:
if (!_config.Behaviour.ThrowGrenades)
{
List<Item> items = new List<Item>();
zombie.inventory.GetAllItems(items);
foreach (Item item in items)
{
if (item.uid.Value == GrenadeItemId)
item.Remove();
}
ItemManager.DoRemoves();
} That got it to load. Thanks!