Allow all bolts, since currenly you can't craft bolts with toolrods that are allowed and they consist of 2 materials. No harm in that.

This commit is contained in:
Bernhard Bonigl committed 2015-01-01 23:50:00 +01:00
1 parent 742d7adb41
commit 121f5c985e
1 file changed
+5
@@ -18,6 +18,7 @@ import tconstruct.library.tools.CustomMaterial;
import tconstruct.library.tools.ToolMaterial;
import tconstruct.library.util.IPattern;
import tconstruct.library.util.IToolPart;
import tconstruct.weaponry.TinkerWeaponry;
import java.util.List;
@@ -49,6 +50,10 @@ public class PartRestrictionHandler {
// null checks
if(event.recipe == null || event.recipe.output == null)
return;
// we allow all bolts
if(event.recipe.output.getItem() == TinkerWeaponry.partBolt)
return;
CastingRecipe recipe = event.recipe;
ItemStack output = recipe.output;