mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 07:06:45 +01:00
Avoid a duplicate config call.
This commit is contained in:
parent
0d7c483bd5
commit
d0cdc208e3
@ -266,8 +266,10 @@ public class Misc {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static int getPowerLevelCap() {
|
public static int getPowerLevelCap() {
|
||||||
if (Config.getInstance().getPowerLevelCap() > 0) {
|
int levelCap = Config.getInstance().getPowerLevelCap();
|
||||||
return Config.getInstance().getPowerLevelCap();
|
|
||||||
|
if (levelCap > 0) {
|
||||||
|
return levelCap;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
return Integer.MAX_VALUE;
|
return Integer.MAX_VALUE;
|
||||||
|
Loading…
Reference in New Issue
Block a user