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 @@ private PacketNEIPatternRecipe packRecipe(IRecipeHandler recipe, int recipeIndex 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