Better support for bolts being built dynamically over the API.

This commit is contained in:
Bernhard Bonigl committed 2015-01-01 21:47:24 +01:00
1 parent a2fd8a793e
commit 4b4627c20d
1 file changed
+4
@@ -267,6 +267,10 @@ public class WeaponryHandler {
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;