WIP: biome config

This commit is contained in:
Aleksey 2020-11-17 19:20:15 +03:00
parent 3ed2bd724c
commit e1a54d06cb
3 changed files with 18 additions and 161 deletions

View file

@ -48,10 +48,9 @@ public abstract class Config {
return str != null ? str : defaultValue;
}
@Nullable
public String getString(String category, String key) {
String str = configKeeper.getValue(category, key);
return str != null ? str : null;
return str != null ? str : "";
}
public boolean setString(String category, String key, String value) {

View file

@ -1,7 +1,5 @@
package ru.betterend.config;
import ru.betterend.config.ConfigKeeper.*;
public class MainConfig extends Config {
private static MainConfig instance;
@ -29,17 +27,7 @@ public class MainConfig extends Config {
}
@Override
protected void registerEntries() {
// this.configKeeper.registerEntry("add_armor_and_equipment", new BooleanEntry(true));
// this.configKeeper.registerEntry("add_terminite", new BooleanEntry(true));
// this.configKeeper.registerEntry("add_terminite_armor", new BooleanEntry(true));
// this.configKeeper.registerEntry("add_terminite_tools", new BooleanEntry(true));
// this.configKeeper.registerEntry("add_aeternuim", new BooleanEntry(true));
// this.configKeeper.registerEntry("add_aeternuim_armor", new BooleanEntry(true));
// this.configKeeper.registerEntry("add_aeternuim_tools", new BooleanEntry(true));
// this.configKeeper.registerEntry("add_pedestals", new BooleanEntry(true));
// this.configKeeper.registerEntry("add_hammers", new BooleanEntry(true));
}
protected void registerEntries() {}
@Override
public void saveChanges() {