mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 07:06:45 +01:00
Fixed diminished returns not getting disabled
This commit is contained in:
parent
38cc7435dc
commit
b5a2e76926
@ -47,7 +47,7 @@ public class SelfListener implements Listener {
|
|||||||
SkillType skillType = event.getSkill();
|
SkillType skillType = event.getSkill();
|
||||||
int threshold = ExperienceConfig.getInstance().getDiminishedReturnsThreshold(skillType);
|
int threshold = ExperienceConfig.getInstance().getDiminishedReturnsThreshold(skillType);
|
||||||
|
|
||||||
if (threshold <= 0) {
|
if (threshold <= 0 || !ExperienceConfig.getInstance().getDiminishedReturnsEnabled()) {
|
||||||
// Diminished returns is turned off
|
// Diminished returns is turned off
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user