Skip to content

Commit

Permalink
Better support for bolts being built dynamically over the API.
Browse files Browse the repository at this point in the history
  • Loading branch information
bonii-xx committed Jan 1, 2015
1 parent a2fd8a7 commit 4b4627c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/tconstruct/weaponry/WeaponryHandler.java
Expand Up @@ -267,6 +267,10 @@ public void buildBolt(ToolBuildEvent event)
if(event.headStack.getItem() != TinkerWeaponry.partBolt)
return;

// is the bolt already split into 2 items?
if(event.accessoryStack != null && event.headStack.getItem() == TinkerWeaponry.partBolt && event.handleStack.getItem() == TinkerWeaponry.partBolt && event.accessoryStack.getItem() == TinkerWeaponry.fletching)
return;

// split the bolt into its two parts
ItemStack bolt1 = event.headStack.copy();
ItemStack bolt2 = event.headStack;
Expand Down

0 comments on commit 4b4627c

Please sign in to comment.