Skip to content

Commit

Permalink
Rightclick on tools without function now also allows you to throw shu…
Browse files Browse the repository at this point in the history
…riken in addition to splash potions!
  • Loading branch information
bonii-xx committed Mar 9, 2015
1 parent d85960f commit 9ba0e69
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/java/tconstruct/library/tools/ToolCore.java
Expand Up @@ -23,6 +23,7 @@
import tconstruct.tools.TinkerTools;
import tconstruct.tools.entity.FancyEntityItem;
import tconstruct.util.config.PHConstruct;
import tconstruct.weaponry.TinkerWeaponry;

/**
* NBTTags Main tag - InfiTool
Expand Down Expand Up @@ -714,6 +715,11 @@ public ItemStack onItemRightClick (ItemStack stack, World world, EntityPlayer pl
player.inventory.setInventorySlotContents(itemSlot, null);
}
}

// throw shurikens!
if(item != null && item == TinkerWeaponry.shuriken) {
item.onItemRightClick(nearbyStack, world, player);
}
}
}
return stack;
Expand Down

0 comments on commit 9ba0e69

Please sign in to comment.