mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2025-01-07 22:27:34 +01:00
Moved buckshot to remove the projectile on the next tick
This commit is contained in:
parent
7cb3faaf3d
commit
6c1319032a
@ -28,7 +28,7 @@ public class Buckshot extends EcoEnchant {
|
||||
@NotNull final Arrow arrow,
|
||||
final int level,
|
||||
@NotNull final EntityShootBowEvent event) {
|
||||
event.getProjectile().remove();
|
||||
this.getPlugin().getScheduler().runLater(1, () -> event.getProjectile().remove());
|
||||
if (shooter instanceof Player) {
|
||||
((Player) shooter).playSound(shooter.getLocation(), Sound.ENTITY_ARROW_SHOOT, SoundCategory.PLAYERS, 1.0f, 1.0f);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user