in 1.17 i have a IRecipeTransferHandler Specifically Only for the CraftingRecipe, but JEI ransferHandler.transferRecipe crashes with BlastingRecipe
Lothrazar opened this issue ยท 2 comments
I think my plugin is correct, i left C for container and then added the recipe like this
public class RequestRecipeTransferHandler<C extends AbstractContainerMenu> implements IRecipeTransferHandler<C, CraftingRecipe> {
Crash log is here
https://pastebin.com/mW3iQrpN
Related code
My plugin for CraftingRecipe
https://github.com/Lothrazar/Storage-Network/blob/trunk/1.17/src/main/java/com/lothrazar/storagenetwork/jei/RequestRecipeTransferHandler.java#L35
Related issue Lothrazar/Storage-Network#388
Thanks for the report!
It looks like you have registered as a universal
recipe transfer handler, which should accept all recipe types. I can look into restricting it based on getRecipeClass()
, that would make sense.