mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-21 04:32:26 +00:00
Rightclick on tools without function now also allows you to throw shuriken in addition to splash potions!
This commit is contained in:
1 parent
d85960f5ec
commit
9ba0e69541
1 file changed
+6
@@ -23,6 +23,7 @@ import tconstruct.library.util.TextureHelper;
|
||||
import tconstruct.tools.TinkerTools;
|
||||
import tconstruct.tools.entity.FancyEntityItem;
|
||||
import tconstruct.util.config.PHConstruct;
|
||||
import tconstruct.weaponry.TinkerWeaponry;
|
||||
|
||||
/**
|
||||
* NBTTags Main tag - InfiTool
|
||||
@@ -714,6 +715,11 @@ public abstract class ToolCore extends Item implements IEnergyContainerItem, IEq
|
||||
player.inventory.setInventorySlotContents(itemSlot, null);
|
||||
}
|
||||
}
|
||||
|
||||
// throw shurikens!
|
||||
if(item != null && item == TinkerWeaponry.shuriken) {
|
||||
item.onItemRightClick(nearbyStack, world, player);
|
||||
}
|
||||
}
|
||||
}
|
||||
return stack;
|
||||
|
||||
Reference in new issue
Block a user