mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 21:26:46 +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