fix official nei support,close #25

This commit is contained in:
vfyjxf committed 2022-02-25 17:46:01 +08:00
1 parent 03331fe40b
commit 05b470889e
1 file changed
+1 -1
@@ -64,7 +64,7 @@ public class NEECraftingHandler implements IOverlayHandler {
private PacketNEIPatternRecipe packProcessRecipe(IRecipeHandler recipe, int recipeIndex) {
final NBTTagCompound recipeInputs = new NBTTagCompound();
NBTTagCompound recipeOutputs = new NBTTagCompound();
String identifier = recipe.getOverlayIdentifier();
String identifier = recipe instanceof TemplateRecipeHandler ? ((TemplateRecipeHandler) recipe).getOverlayIdentifier() : "";
int inputIndex = 0;
int outputIndex = 0;
//get all recipe inputs and other stacks,use first item