Fixing Shake showing the wrong chance to succeed

This commit is contained in:
nossr50 2021-04-05 12:47:03 -07:00
parent 3b7f416ed9
commit c5f4666525
2 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
Version 2.1.187
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)
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

View File

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