I figure you have a reason I just wanted to ask what this bit of code fixed and if I can remove it without causing issues.
private object OnCraft(ItemCraftTask task)
...
if (targetName.Contains("key"))
{
return null;
}
...
}