Clean up config code

pull/7/head
valoeghese 4 years ago
parent eb1ae52e64
commit eb210af166

@ -20,8 +20,8 @@ public class ExampleMod implements ModInitializer {
// example config // example config
try { try {
config = Configs.loadOrCreate(new Id("modid", "example"), config = Configs.loadOrCreate(new Id("modid", "example"),
ConfigTemplate.builder().addContainer("exampleContainer", e -> e ConfigTemplate.builder()
.addDataEntry("someData", "0.5")) .addContainer("exampleContainer", container -> container.addDataEntry("someData", "0.5"))
.build()); .build());
} catch (IOException e) { } catch (IOException e) {
throw new RuntimeException(e); throw new RuntimeException(e);

Loading…
Cancel
Save