mirror of
https://github.com/darksaid98/SiegeEngines.git
synced 2026-12-01 22:22:10 +00:00
Update EntityProjectile.java
Makes sure that these Arrows cannot be picked up by Survival Players
This commit is contained in:
1 parent
339fad98f3
commit
f2518d0367
1 file changed
+3
-1
@@ -91,8 +91,10 @@ public class EntityProjectile extends SiegeEngineProjectile {
|
||||
if (arrow instanceof Arrow) {
|
||||
Arrow arr = (Arrow) arrow;
|
||||
arr.setDamage(8);
|
||||
if (player instanceof org.bukkit.projectiles.ProjectileSource)
|
||||
if (player instanceof org.bukkit.projectiles.ProjectileSource) {
|
||||
arr.setShooter((org.bukkit.projectiles.ProjectileSource) player);
|
||||
arr.setPickupStatus(org.bukkit.entity.AbstractArrow.PickupStatus.CREATIVE_ONLY);
|
||||
}
|
||||
}
|
||||
if (playSound) {
|
||||
world.playSound(loc, this.soundType, 20, 2);
|
||||
|
||||
Reference in new issue
Block a user