Lothrazar / InventoryCrafting

Minecraft mod written in Java
MIT License
3 stars 4 forks source link

Material loss when canceling while crafting from inventory #15

Open IndolentKheper opened 2 years ago

IndolentKheper commented 2 years ago

Minecraft Version: 1.18.2

Forge Version: 40.1.30

Mod Version: 1.1.2

Single Player or Server: LAN server

Describe problem (what you were doing; what happened; what should have happened):

Pretty easy to recreate in survival, pick an item to craft from the recipe book, then cancel by exiting the menu without finishing the item. A portion of the materials used are not returned. Not all of the materials are lost, and I think I figured out what's happening. Materials on the bottom row of the 3*3 grid are lost, and some on the sides. So for example, attempt to craft 2 stone pickaxes, then exit the menu. 2 sticks are lost, as they were on the bottom row which normally isn't accessible without a crafting table. Cancel crafting multiple beds and the wool on the right side is lost. For whatever reason the upper right corner materials are returned normally.

The same thing does not happen with the crafting table, only when crafting from inventory. All materials are returned when canceling out of the crafting table.