CyclopsMC / IntegratedCrafting

Craft stuff in Integrated Dynamics networks
MIT License
7 stars 6 forks source link

Ore dictionary ingredients are sometimes counted incorrectly when calculating crafting plans #33

Closed Naosyth closed 5 years ago

Naosyth commented 5 years ago

Issue type:


Short description:

Crafting plans that use ore dictionary matching can sometimes incorrectly count the number of available ingredients for a recipe.

Steps to reproduce the problem:

  1. Create a network that can craft reinforced upgrade kits, using ore dictionary matching on the hardened glass
  2. Supply the network with all of the ingredients except for one hardened glass
  3. Queue crafting job
  4. It outputs Failed to extract ingredients for crafting job
  5. Replace reinforced upgrade kit recipe with the same recipe, but without using ore dictionary matching on the glass
  6. Now the crafting planner will alert that you are missing one glass, and you will be unable to queue the craft job.

Only one hardened glass block in network: image

Crafting plan using ore dictionary recipe: image

Crafting plan without ore dictionary recipe: image

Expected behaviour:

Using a recipe that has ore dictionary matching should detect that there is not enough hardened glass in the network to initiate the craft job.


Versions: