2
0
Эх сурвалжийг харах

Fixing Shake showing the wrong chance to succeed

nossr50 4 жил өмнө
parent
commit
c5f4666525

+ 1 - 0
Changelog.txt

@@ -1,5 +1,6 @@
 Version 2.1.187
 Version 2.1.187
     Fixed a ClassCastException error involving Rupture
     Fixed a ClassCastException error involving Rupture
+    Fixed a bug where /fishing was showing the wrong shake chance
     Default Shake chance increased from 15% to 30% (update advanced.yml manually or delete the file to regenerate it and receive these changes)
     Default Shake chance increased from 15% to 30% (update advanced.yml manually or delete the file to regenerate it and receive these changes)
     Removed entries for ranks 2-8 of Shake from advanced.yml (Shake only has one rank, these entries were a mistake)
     Removed entries for ranks 2-8 of Shake from advanced.yml (Shake only has one rank, these entries were a mistake)
     Modified the warning about UltraPermissions
     Modified the warning about UltraPermissions

+ 1 - 1
src/main/java/com/gmail/nossr50/skills/fishing/FishingManager.java

@@ -198,7 +198,7 @@ public class FishingManager extends SkillManager {
     }
     }
 
 
     public double getShakeChance() {
     public double getShakeChance() {
-        return AdvancedConfig.getInstance().getShakeChance(getLootTier());
+        return AdvancedConfig.getInstance().getShakeChance(RankUtils.getRank(mmoPlayer.getPlayer(), SubSkillType.FISHING_SHAKE));
     }
     }
 
 
     protected int getVanillaXPBoostModifier() {
     protected int getVanillaXPBoostModifier() {