Make shuriken and ammoweapon/throwing knifes not throwable without ammo

This commit is contained in:
Bernhard Bonigl committed 2014-10-30 13:16:41 +01:00
1 parent 9d7d33fea3
commit 3f74dd7535
2 files changed
+5 -1

No files matched your search

@@ -101,6 +101,9 @@ public class Shuriken extends AmmoWeapon {
@Override
public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) {
if(getAmmoCount(stack) <= 0)
return stack;
launchProjectile(stack, world, player);
// this is only used for the animation