summaryrefslogtreecommitdiffstats
path: root/EssentialsProtect/src/com/earth2me/essentials
diff options
context:
space:
mode:
authorsnowleo <schneeleo@gmail.com>2011-07-06 01:13:03 +0200
committersnowleo <schneeleo@gmail.com>2011-07-06 01:13:03 +0200
commit4a2a8f2ce0e762d3ee6adeb1b33db6aaeff7bd02 (patch)
tree617c3e6b0a6232c6962b9fb8148199767c7ad382 /EssentialsProtect/src/com/earth2me/essentials
parent20cfc2d87ee6c38b58720b88220174a93e4d0d42 (diff)
downloadEssentials-4a2a8f2ce0e762d3ee6adeb1b33db6aaeff7bd02.tar
Essentials-4a2a8f2ce0e762d3ee6adeb1b33db6aaeff7bd02.tar.gz
Essentials-4a2a8f2ce0e762d3ee6adeb1b33db6aaeff7bd02.tar.lz
Essentials-4a2a8f2ce0e762d3ee6adeb1b33db6aaeff7bd02.tar.xz
Essentials-4a2a8f2ce0e762d3ee6adeb1b33db6aaeff7bd02.zip
Bounce projectiles, if they are cancelled.
Diffstat (limited to 'EssentialsProtect/src/com/earth2me/essentials')
-rw-r--r--EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectEntityListener.java1
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;
}