Plugin broken with the updateFixed

Hello, the plugin does not work after the last update :(

Temporary fix:

 

Change line 473 from

if (player.inventory.AllItems().Length == 2)
{
    if (player.inventory.GetAmount(ItemManager.FindItemDefinition("rock").itemid) == 1)
    {
        if (player.inventory.GetAmount(ItemManager.FindItemDefinition("torch").itemid) == 1)
        {
            player.inventory.Strip();
        }
    }
}

To

if (player.inventory.containerMain.itemList.Count == 2)
{
    if (player.inventory.GetAmount(ItemManager.FindItemDefinition("rock").itemid) == 1 &&
        player.inventory.GetAmount(ItemManager.FindItemDefinition("torch").itemid) == 1)
    {
        player.inventory.Strip();
    }
}

 

 

And also change line 697 from

            if (player.inventory.AllItems().Length == 0)

to

            if (player.inventory.containerMain.itemList.Count == 2)


Merged post

The SaveInv feature may not fully work as intended but as far as I can see it does.
Locked automatically