First textures
This commit is contained in:
parent
6ec1a3711e
commit
2bc84f65a1
14 changed files with 14 additions and 4 deletions
|
@ -95,7 +95,7 @@ public abstract class Config {
|
|||
}
|
||||
|
||||
public boolean getBoolean(String key) {
|
||||
Boolean val = configKeeper.getValue(key);
|
||||
Boolean val = configKeeper.getValue(key);
|
||||
return val != null ? val : false;
|
||||
}
|
||||
|
||||
|
|
|
@ -63,6 +63,13 @@ public class ConfigWriter {
|
|||
public static void save(File configFile, JsonElement config) {
|
||||
JsonFactory.storeJson(configFile, config);
|
||||
}
|
||||
|
||||
public static String scrubFileName(String input) {
|
||||
input = input.replaceAll("[/\\ ]+", "_");
|
||||
input = input.replaceAll("[,:&\"\\|\\<\\>\\?\\*]", "_");
|
||||
|
||||
return input;
|
||||
}
|
||||
|
||||
static {
|
||||
if (!MOD_CONFIG_DIR.exists()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue