mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-04-26 08:29:44 +00:00
Bounce projectiles, if they are cancelled.
This commit is contained in:
parent
526df76ca9
commit
5006c68af2
1 changed files with 1 additions and 0 deletions
|
@ -125,6 +125,7 @@ public class EssentialsProtectEntityListener extends EntityListener
|
|||
&& !user.isAuthorized("essentials.protect.damage.disable")))
|
||||
{
|
||||
event.setCancelled(true);
|
||||
((EntityDamageByProjectileEvent)event).setBounce(true);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue