mirror of
https://github.com/Zrips/Jobs.git
synced 2025-01-16 21:21:20 +01:00
Merge pull request #1280 from BeepoWuff/allow-delevel-config-never-enforced
Enforce AllowDelevel Config Option
This commit is contained in:
commit
7ed1f6b723
@ -216,9 +216,15 @@ public class JobProgression {
|
||||
private boolean checkLevelDown() {
|
||||
boolean ret = false;
|
||||
while (canLevelDown()) {
|
||||
// Don't level down at 1
|
||||
if (level <= 1)
|
||||
if (
|
||||
// Don't level down at 1
|
||||
level <= 1 ||
|
||||
!Jobs.getGCManager().AllowDelevel
|
||||
) {
|
||||
experience = 0;
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
level--;
|
||||
experience += getMaxExperience(level);
|
||||
|
Loading…
Reference in New Issue
Block a user