StrangeLoopGames / EcoIssues

131 stars 21 forks source link

[0.9.0 staging-1239] Crash when starting craft #13599

Closed SlayksWood closed 4 years ago

SlayksWood commented 4 years ago

Crash when starting craft with having ingredient to several tagged item in one recipe. Step to reproduce:

Exception: InvalidOperationException Message:Changes could not be applied, the requested operation would result in an invalid inventory state: Inventory does not contain the items requested to be removed Source:Eco.Gameplay System.InvalidOperationException: Changes could not be applied, the requested operation would result in an invalid inventory state: Inventory does not contain the items requested to be removed at Eco.Gameplay.Items.InventoryChangeSet.ApplyInternal(Boolean throwOnInvalid) at Eco.Gameplay.Items.Inventory.Modify(Action`1 callback, User user) in C:\Jenkins\workspace\Eco Staging\Server\Eco.Gameplay\Items\InventoryRelated\Inventory.cs:line 603 at Eco.Gameplay.Items.WorkOrder.ScanInventoryAndContribute(User actor, Inventory inventory) in C:\Jenkins\workspace\Eco Staging\Server\Eco.Gameplay\Items\WorkOrder.cs:line 559 at Eco.Gameplay.Components.CraftingComponent.AddWorkOrderToBench(Player player, WorkOrder workOrder, BankAccount account) in C:\Jenkins\workspace\Eco Staging\Server\Eco.Gameplay\Components\CraftingComponent.cs:line 409 at Eco.Gameplay.Components.CraftingComponent.CreateWorkOrder(Player player, RecipeFamily recipe, Int32 quantity, BankAccount account, Boolean automatic) in C:\Jenkins\workspace\Eco Staging\Server\Eco.Gameplay\Components\CraftingComponent.cs:line 355 ``` [Crash with tagged craft.txt](https://github.com/StrangeLoopGames/EcoIssues/files/3814029/Crash.with.tagged.craft.txt)
SlayksWood commented 4 years ago

In last staging you can start research at all. And you can exploit it to multiplier Papers.