From 121f5c985e79a604cd73e73cb9edc4ad2a93037f Mon Sep 17 00:00:00 2001 From: Bernhard Bonigl Date: Thu, 1 Jan 2015 23:50:00 +0100 Subject: [PATCH] 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. --- .../restriction/PartRestrictionHandler.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/iguanaman/iguanatweakstconstruct/restriction/PartRestrictionHandler.java b/src/main/java/iguanaman/iguanatweakstconstruct/restriction/PartRestrictionHandler.java index 842e905..bc7b6bc 100644 --- a/src/main/java/iguanaman/iguanatweakstconstruct/restriction/PartRestrictionHandler.java +++ b/src/main/java/iguanaman/iguanatweakstconstruct/restriction/PartRestrictionHandler.java @@ -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;