From eb210af16617cfcae8e26868dfce7b6d02f6db1b Mon Sep 17 00:00:00 2001 From: valoeghese Date: Sat, 6 Jun 2020 11:08:19 +1200 Subject: [PATCH] Clean up config code --- .../io/github/minecraftcursedlegacy/example/ExampleMod.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/io/github/minecraftcursedlegacy/example/ExampleMod.java b/src/main/java/io/github/minecraftcursedlegacy/example/ExampleMod.java index 0d3df58..088a1b3 100644 --- a/src/main/java/io/github/minecraftcursedlegacy/example/ExampleMod.java +++ b/src/main/java/io/github/minecraftcursedlegacy/example/ExampleMod.java @@ -20,8 +20,8 @@ public class ExampleMod implements ModInitializer { // example config try { config = Configs.loadOrCreate(new Id("modid", "example"), - ConfigTemplate.builder().addContainer("exampleContainer", e -> e - .addDataEntry("someData", "0.5")) + ConfigTemplate.builder() + .addContainer("exampleContainer", container -> container.addDataEntry("someData", "0.5")) .build()); } catch (IOException e) { throw new RuntimeException(e);