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