1
0
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:
Zrips 2021-10-26 16:00:29 +03:00 committed by GitHub
commit 7ed1f6b723
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);