mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-19 03:49:29 +00:00
Better support for bolts being built dynamically over the API.
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user