From 42232cbdc84570347f4c0934e1509b5b87b413e9 Mon Sep 17 00:00:00 2001 From: BeepoWuff <10000712+BeepoWuff@users.noreply.github.com> Date: Tue, 21 Sep 2021 03:45:21 +1000 Subject: [PATCH] Enforce AllowDelevel config option --- .../com/gamingmesh/jobs/container/JobProgression.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/gamingmesh/jobs/container/JobProgression.java b/src/main/java/com/gamingmesh/jobs/container/JobProgression.java index 164de32e..0a846b36 100644 --- a/src/main/java/com/gamingmesh/jobs/container/JobProgression.java +++ b/src/main/java/com/gamingmesh/jobs/container/JobProgression.java @@ -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);