SG kit fletcher no longer can pickup fletched arrows
This commit is contained in:
parent
06ebbbbc73
commit
340441edbe
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user