From 64217dcf2749db26bb9058cb5115f9479582cc4f Mon Sep 17 00:00:00 2001 From: Bernhard Bonigl Date: Thu, 9 Apr 2015 21:30:58 +0200 Subject: [PATCH] Add an exception for drying rack recipies to work with frying-pan kills --- .../tconstruct/library/crafting/DryingRackRecipes.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/java/tconstruct/library/crafting/DryingRackRecipes.java b/src/main/java/tconstruct/library/crafting/DryingRackRecipes.java index 5d316abf..c914611a 100644 --- a/src/main/java/tconstruct/library/crafting/DryingRackRecipes.java +++ b/src/main/java/tconstruct/library/crafting/DryingRackRecipes.java @@ -71,6 +71,13 @@ public class DryingRackRecipes public boolean matches (ItemStack input) { + // makes all drying rack recipies compatible with stuff killed by a frying pan + if(input.hasTagCompound()) { + input = input.copy(); + input.getTagCompound().removeTag("frypanKill"); + if(input.getTagCompound().hasNoTags()) + input.setTagCompound(null); + } return ItemStack.areItemStacksEqual(this.input, input); }