Just Enough Items (JEI)

Just Enough Items (JEI)

392M Downloads

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

commented

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

return transferHandler.transferRecipe(container, recipeLayout.getRecipe(), recipeLayout, player, maxTransfer, doTransfer);

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

commented

Thanks for the report!

https://github.com/Lothrazar/Storage-Network/blob/7c8f524c04bfa6e90d68d2a01a06f9fed5de9331/src/main/java/com/lothrazar/storagenetwork/jei/JeiPlugin.java#L42-L46

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.

commented

This should be fixed in the next automatic release