mirror of
https://github.com/PlayPro/CoreProtect.git
synced 2024-11-28 12:55:34 +01:00
Fixed invalid config values defaulting to zero rather than default value
This commit is contained in:
parent
e81c84671c
commit
342fadd0f6
@ -311,7 +311,7 @@ public class Config extends Language {
|
|||||||
|
|
||||||
configured = configured.replaceAll("[^0-9]", "");
|
configured = configured.replaceAll("[^0-9]", "");
|
||||||
|
|
||||||
return configured.isEmpty() ? 0 : Integer.parseInt(configured);
|
return configured.isEmpty() ? dfl : Integer.parseInt(configured);
|
||||||
}
|
}
|
||||||
|
|
||||||
private String getString(final String key) {
|
private String getString(final String key) {
|
||||||
|
Loading…
Reference in New Issue
Block a user