Development Milestone:
Added max machine length setting to config.
This commit is contained in:
1 parent
698aceafc0
commit
18114e3064
3 files changed
+25
-4
No files matched your search
@@ -18,6 +18,24 @@ public class ConfigManager {
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| max-machine-length
|
||||
|--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
public static int getMaxMachineLength() {
|
||||
int configured = RSAuger.getInstance()
|
||||
.getConfig()
|
||||
.getInt("max-machine-length", 16);
|
||||
|
||||
if (configured < 1) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
return Math.min(configured, 16);
|
||||
}
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| RELOAD
|
||||
|
||||
Reference in new issue
Block a user