NBT Errors with Cyclic Workbench and Cyclic Inventory craftingtable
Quostin opened this issue ยท 4 comments
Versions
Minecraft Version: 1.12.2
Silent's Gems Version: 1.12-2.5.11-250
Silent Lib Version: 1.12-2.2.13-94
Modpack and Version (if applicable): Mech and Magic 1.12.2-RC4
Expected behavior
- To make the actual tool with the gems selected
Actual behaviour
- Gives a random tool than what you used.
Steps to reproduce the problem
- Use Cyclic Workbench or Cyclic Inventory
- Place Gems down as what recipe shows
- pulls the Error NBT item into inventory.
- Select the new tool...
Used aquamarine in the examples above, but it does that for all gems using the Cyclic Workbench and Cyclic Inventory.
Cyclic author here, looking into this now.
Is there some sort of onCrafted event I can hook into?
I think this is the offending line, but all it does is grab the output. Unless maybe the .copy() is ignoring NBT?.
@PrinceOfAmber Try using IRecipe#getCraftingResult instead. My recipe needs access to the InventoryCrafting to produce the right output.
This is the recipe class: https://github.com/SilentChaos512/SilentGems/blob/1.12/common/net/silentchaos512/gems/recipe/RecipeMixedMaterialItem.java#L173