mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-19 11:59:14 +00:00
Add an exception for drying rack recipies to work with frying-pan kills
This commit is contained in:
1 parent
2931a54a1d
commit
64217dcf27
1 file changed
+7
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user