Fixed a bug where a player could gain Acrobatics exp while riding a cart

This commit is contained in:
bm01 2012-05-08 20:20:23 +02:00
parent c2b4961b8d
commit 06f97ac2f1
2 changed files with 2 additions and 1 deletions

View File

@ -20,6 +20,7 @@ Version 1.3.07
+ Added config options for enabling/disabling specific double drops
+ Added automatic zip backup of flatfile database & config files
+ Added config options to enable/disable specific skills for PVP & PVE
= Fixed bug where a player could gain Acrobatics experience while riding a cart
= Fixed /party not working properly with 2 arguments
= Fixed /ability not checking the right permission
= Fixed rare NPE on /party command

View File

@ -121,7 +121,7 @@ public class EntityListener implements Listener {
}
if (!Misc.isInvincible(player, event)) {
if (cause == DamageCause.FALL && Permissions.getInstance().acrobatics(player)) {
if (cause == DamageCause.FALL && Permissions.getInstance().acrobatics(player) && !player.isInsideVehicle()) {
Acrobatics.acrobaticsCheck(player, event);
}
else if (cause == DamageCause.BLOCK_EXPLOSION && Permissions.getInstance().demolitionsExpertise(player)) {