From 05b470889e6fa9b396daef4b2f62f06225e6bcac Mon Sep 17 00:00:00 2001 From: vfyjxf <2331007009@qq.com> Date: Fri, 25 Feb 2022 17:46:01 +0800 Subject: [PATCH] fix official nei support,close #25 --- src/main/java/com/github/vfyjxf/nee/nei/NEECraftingHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/github/vfyjxf/nee/nei/NEECraftingHandler.java b/src/main/java/com/github/vfyjxf/nee/nei/NEECraftingHandler.java index ab38126..e2b1bad 100644 --- a/src/main/java/com/github/vfyjxf/nee/nei/NEECraftingHandler.java +++ b/src/main/java/com/github/vfyjxf/nee/nei/NEECraftingHandler.java @@ -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