瀏覽代碼

Fixed bug which prevented gaining Acrobatics XP

TfT_02 11 年之前
父節點
當前提交
5a68c7a335
共有 2 個文件被更改,包括 2 次插入1 次删除
  1. 1 0
      Changelog.txt
  2. 1 1
      src/main/java/com/gmail/nossr50/listeners/EntityListener.java

+ 1 - 0
Changelog.txt

@@ -18,6 +18,7 @@ Version 1.4.08-dev
  = Fixed bug with Salvage not reading the config value for the anvil material.
  = 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 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 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
  ! Updated localization files
 
 
 Version 1.4.07
 Version 1.4.07

+ 1 - 1
src/main/java/com/gmail/nossr50/listeners/EntityListener.java

@@ -232,7 +232,7 @@ public class EntityListener implements Listener {
 
 
             switch (cause) {
             switch (cause) {
                 case FALL:
                 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;
                         return;
                     }
                     }