From 6cf1c1476b34dd7984691cdc6972c5edff7a4890 Mon Sep 17 00:00:00 2001 From: inyourwalls Date: Mon, 19 Feb 2024 19:37:30 -0500 Subject: create config screen --- .../net/inyourwalls/customlevelcolour/CustomLevelColourConfig.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/java/net/inyourwalls/customlevelcolour/CustomLevelColourConfig.java') diff --git a/src/main/java/net/inyourwalls/customlevelcolour/CustomLevelColourConfig.java b/src/main/java/net/inyourwalls/customlevelcolour/CustomLevelColourConfig.java index b963f02..c8c47d7 100644 --- a/src/main/java/net/inyourwalls/customlevelcolour/CustomLevelColourConfig.java +++ b/src/main/java/net/inyourwalls/customlevelcolour/CustomLevelColourConfig.java @@ -18,9 +18,9 @@ public class CustomLevelColourConfig { return GSON.fromJson(reader, CustomLevelColourConfig.class); } - public static void save(Path path) throws IOException { + public static void save(CustomLevelColourConfig config, Path path) throws IOException { FileWriter writer = new FileWriter(path.toFile()); - GSON.toJson(writer); + GSON.toJson(config, writer); writer.close(); } } -- cgit v1.3.1