Browse Source

Fixed bug where Hylian Luck was broken

Fixes #1771
TfT_02 11 years ago
parent
commit
393d9ca74e

+ 1 - 0
Changelog.txt

@@ -29,6 +29,7 @@ Version 1.4.08-dev
  = Fixed bug where `/addlevels all` and `/skillreset all` didn't work
  = Fixed bug where `/addlevels all` and `/skillreset all` didn't work
  = Fixed bug which made it possible to gain XP by taming the same horse multiple times, if a player "untamed" that horse
  = Fixed bug which made it possible to gain XP by taming the same horse multiple times, if a player "untamed" that horse
  = Fixed bug where the /ptp request expiration time was checked wrongly - preventing players from using the command
  = Fixed bug where the /ptp request expiration time was checked wrongly - preventing players from using the command
+ = Fixed bug where Hylian Luck was broken
  ! Updated localization files
  ! Updated localization files
  ! Changed the appearance of /mcmmo commands
  ! Changed the appearance of /mcmmo commands
  ! Changed AxesCritical to CriticalHit in config file
  ! Changed AxesCritical to CriticalHit in config file

+ 1 - 1
src/main/java/com/gmail/nossr50/skills/herbalism/HerbalismManager.java

@@ -232,7 +232,7 @@ public class HerbalismManager extends SkillManager {
 
 
         Player player = getPlayer();
         Player player = getPlayer();
 
 
-        if (treasures.isEmpty() || EventUtils.simulateBlockBreak(blockState.getBlock(), player, false)) {
+        if (treasures.isEmpty() || !EventUtils.simulateBlockBreak(blockState.getBlock(), player, false)) {
             return false;
             return false;
         }
         }