diff options
author | snowleo <schneeleo@gmail.com> | 2011-07-06 01:13:03 +0200 |
---|---|---|
committer | snowleo <schneeleo@gmail.com> | 2011-07-06 01:13:03 +0200 |
commit | 5006c68af201857583c3097554713a9fa497d1a8 (patch) | |
tree | 33ea99c715c818e23703120b1b200dfc5f1f2b3a /EssentialsProtect/src/com/earth2me | |
parent | 526df76ca99a3082371dcec42764a6f8d4758316 (diff) | |
download | Essentials-5006c68af201857583c3097554713a9fa497d1a8.tar Essentials-5006c68af201857583c3097554713a9fa497d1a8.tar.gz Essentials-5006c68af201857583c3097554713a9fa497d1a8.tar.lz Essentials-5006c68af201857583c3097554713a9fa497d1a8.tar.xz Essentials-5006c68af201857583c3097554713a9fa497d1a8.zip |
Bounce projectiles, if they are cancelled.
Diffstat (limited to 'EssentialsProtect/src/com/earth2me')
-rw-r--r-- | EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectEntityListener.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectEntityListener.java b/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectEntityListener.java index f93475337..f66302ffc 100644 --- a/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectEntityListener.java +++ b/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectEntityListener.java @@ -125,6 +125,7 @@ public class EssentialsProtectEntityListener extends EntityListener && !user.isAuthorized("essentials.protect.damage.disable")))
{
event.setCancelled(true);
+ ((EntityDamageByProjectileEvent)event).setBounce(true);
return;
}
|