Fixed invalid config values defaulting to zero rather than default value

This commit is contained in:
Intelli 2023-07-17 16:42:02 -06:00
parent e81c84671c
commit 342fadd0f6

View File

@ -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) {