SG kit fletcher no longer can pickup fletched arrows

This commit is contained in:
libraryaddict 2015-03-17 18:30:48 +13:00
parent 06ebbbbc73
commit 340441edbe

View File

@ -6,6 +6,7 @@ import java.util.Iterator;
import org.bukkit.GameMode;
import org.bukkit.Material;
import org.bukkit.Sound;
import org.bukkit.craftbukkit.v1_7_R4.entity.CraftArrow;
import org.bukkit.entity.Entity;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
@ -80,8 +81,10 @@ public class PerkFletcher extends Perk
if (isFletchedArrow(player.getInventory().getItem(i)))
{
_fletchArrows.add(event.getProjectile());
((CraftArrow) event.getProjectile()).getHandle().fromPlayer = 0;
return;
}
}
}
@EventHandler