StrangeLoopGames / EcoIssues

131 stars 21 forks source link

Crafting workbench with no ingredients failed: #13456

Closed johnkslg closed 4 years ago

johnkslg commented 4 years ago

System.NullReferenceException: Object reference not set to an instance of an object. at Eco.Gameplay.Items.Inventory.<>cDisplayClass57_0.b0(ItemStack stack) at System.Linq.Enumerable.WhereEnumerableIterator1.MoveNext() at System.Linq.Enumerable.Sum[TSource](IEnumerable1 source, Func`2 selector) at Eco.Gameplay.Items.WorkOrder.<>cDisplayClass172_0.b0(IInventoryChangeSet changeSet) at Eco.Gameplay.Items.Inventory.Modify(Action`1 callback, User user) at Eco.Gameplay.Items.WorkOrder.ScanInventoryAndContribute(User actor, Inventory inventory) at Eco.Gameplay.Components.CraftingComponent.AddWorkOrderToBench(Player player, WorkOrder workOrder, BankAccount account) at Eco.Gameplay.Components.CraftingComponent.CreateWorkOrder(Player player, RecipeFamily recipe, Int32 quantity, BankAccount account, Boolean automatic)

Hakuhonoo commented 4 years ago

Done in https://github.com/StrangeLoopGames/Eco/pull/5163