TechReborn/src/main/java/techreborn/blockentity
Ayutac 18c8c40f27
Fixed AutoCrafting Table bug (#2762)
If the table was locked, canMake only checked for each ingredient to be there more than once, but make greedily took all items from the first encountered slot of the needed ingredient if the recipe didn't use the full crafting table and the ingredients weren't aligned to the upper left corner of the crafting table (discovered and reproducible with three wheat in the first column second row and single wheats in the other two columns of the second row).

This commit simply disallows greedy behaviour, each crafting grid slot can only be used once.

I also made one or two changes to the rest of the code (formatting,use of constants etc) while I was at it, but these didn't change functionality.
2022-01-20 20:20:32 +00:00
..
cable Fix licenses 2021-12-03 19:02:55 +00:00
data Use modern java features where we can, optimise imports. 2021-05-29 20:32:05 +01:00
generator Fix #2566: Implement Fabric's Fluid-containing Item API (#2706) 2022-01-03 17:29:46 +00:00
lighting Initial migration to V2 Energy API (#2474) 2021-09-01 21:14:15 +01:00
machine Fixed AutoCrafting Table bug (#2762) 2022-01-20 20:20:32 +00:00
storage Fix #2579: expose inner storage unit stack to transfer API (#2738) 2022-01-17 22:39:57 +00:00
transformers Initial migration to V2 Energy API (#2474) 2021-09-01 21:14:15 +01:00