cancel_crafting works in unexpected ways
Posted: Tue Dec 16, 2025 4:01 pm
Let's assume an item is added to the crafting queue that causes multiple items to appear in the crafting queue because the player doesn't have all the direct ingredients for it. For example after adding a solar-panel-equipment the crafting queue might look like this:
Given the description of the documentation if I call I would expect one of the copper cables to be removed from the queue. What happens instead is that the entire queue gets cancelled because the "cancel_crafting" seems to look at the queue of composite items that were added through "begin_crafting" instead.
With other words it only considers items that are not a prerequisite to be cancelled. All other items would only indirectly be affected.
Many thanks!
Given the description of the documentation if I call I would expect one of the copper cables to be removed from the queue. What happens instead is that the entire queue gets cancelled because the "cancel_crafting" seems to look at the queue of composite items that were added through "begin_crafting" instead.
With other words it only considers items that are not a prerequisite to be cancelled. All other items would only indirectly be affected.
Many thanks!