Skip to content

Commit

Permalink
Fix disabled XP multiplier abilities applying in sources menu
Browse files Browse the repository at this point in the history
  • Loading branch information
Archy-X committed Jul 26, 2023
1 parent 78d0ce9 commit 3e9b339
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ private double getMultiplier(Player player, Skill skill) {
return 1.0;
}
double multiplier = 1.0;
if (playerData.getAbilityLevel(ability) > 0) {
if (playerData.getAbilityLevel(ability) > 0 && plugin.getAbilityManager().isEnabled(ability)) {
double abilityValue = plugin.getAbilityManager().getValue(ability, playerData.getAbilityLevel(ability));
double addedMultiplier = abilityValue / 100;
multiplier += addedMultiplier;
Expand Down

0 comments on commit 3e9b339

Please sign in to comment.