From 6dc5fb9ba14afa2bc266812e8c5fab7d07f5b495 Mon Sep 17 00:00:00 2001 From: Zrips Date: Tue, 25 Aug 2020 14:51:14 +0300 Subject: [PATCH] Lets reload jobs limits on level up or level down --- .../java/com/gamingmesh/jobs/container/JobProgression.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/gamingmesh/jobs/container/JobProgression.java b/src/main/java/com/gamingmesh/jobs/container/JobProgression.java index cfcc613b..25a79187 100644 --- a/src/main/java/com/gamingmesh/jobs/container/JobProgression.java +++ b/src/main/java/com/gamingmesh/jobs/container/JobProgression.java @@ -185,6 +185,7 @@ public class JobProgression { experience -= maxExperience; ret = true; reloadMaxExperience(); + this.jPlayer.reloadLimits(); } // At max level @@ -208,7 +209,8 @@ public class JobProgression { int exp = getMaxExperience(level); experience = experience + exp; ret = true; - reloadMaxExperience(); + reloadMaxExperience(); + this.jPlayer.reloadLimits(); } return ret; }