Rightclick on tools without function now also allows you to throw shuriken in addition to splash potions!

This commit is contained in:
Bernhard Bonigl committed 2015-03-10 00:38:40 +01:00
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;