Skip to content
This repository has been archived by the owner on Mar 10, 2021. It is now read-only.

Commit

Permalink
Allow all bolts, since currenly you can't craft bolts with toolrods t…
Browse files Browse the repository at this point in the history
…hat are allowed and they consist of 2 materials. No harm in that.
  • Loading branch information
bonii-xx committed Jan 1, 2015
1 parent 742d7ad commit 121f5c9
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -18,6 +18,7 @@
import tconstruct.library.tools.ToolMaterial;
import tconstruct.library.util.IPattern;
import tconstruct.library.util.IToolPart;
import tconstruct.weaponry.TinkerWeaponry;

import java.util.List;

Expand Down Expand Up @@ -49,6 +50,10 @@ public void onPartCasting(SmelteryCastEvent.CastingTable event)
// 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;

Expand Down

0 comments on commit 121f5c9

Please sign in to comment.