Fixed bug which prevented gaining Acrobatics XP

This commit is contained in:
TfT_02 2013-11-10 00:52:30 +01:00
parent 69ef7f40d8
commit 5a68c7a335
2 changed files with 2 additions and 1 deletions

View File

@ -18,6 +18,7 @@ Version 1.4.08-dev
= Fixed bug with Salvage not reading the config value for the anvil material.
= Fixed exploit where you could receive smelting XP for improper items
= Fixed bug where the Unbreaking enchantment was ignored when using "Super Breaker" or "Giga Drill Breaker"
= Fixed bug which prevented players from gaining Acrobatics XP when the setting 'Prevent_XP_After_Teleport' was set to false
! Updated localization files
Version 1.4.07

View File

@ -232,7 +232,7 @@ public class EntityListener implements Listener {
switch (cause) {
case FALL:
if (!Config.getInstance().getPreventXPAfterTeleport() || SkillUtils.calculateTimeLeft((long) mcMMOPlayer.getTeleportATS() * Misc.TIME_CONVERSION_FACTOR, 5, player) > 0) {
if (Config.getInstance().getPreventXPAfterTeleport() && SkillUtils.calculateTimeLeft((long) mcMMOPlayer.getTeleportATS() * Misc.TIME_CONVERSION_FACTOR, 5, player) > 0) {
return;
}