From bd44fab93edc45aee6c856dcedf6fbbf91617a38 Mon Sep 17 00:00:00 2001 From: PlexSheep Date: Fri, 10 Nov 2023 15:12:46 +0100 Subject: [PATCH] i know why it does not work --- src/client/java/de/cscherr/mcpht/config/MCPHTConfig.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/client/java/de/cscherr/mcpht/config/MCPHTConfig.java b/src/client/java/de/cscherr/mcpht/config/MCPHTConfig.java index 79ef046..09c26a6 100644 --- a/src/client/java/de/cscherr/mcpht/config/MCPHTConfig.java +++ b/src/client/java/de/cscherr/mcpht/config/MCPHTConfig.java @@ -22,8 +22,7 @@ public class MCPHTConfig implements ConfigData { MCPHTClient.LOGGER.info("loading configs"); compileFilter(); } - - private void compileFilter() { + public void compileFilter() { try { this.networkLogging.pattern = Pattern.compile(".*"); } @@ -42,6 +41,8 @@ public class MCPHTConfig implements ConfigData { NAME } @ConfigEntry.Gui.Excluded + // FIXME: This field cannot be saved to a file, which causes a runtime error on saving. + // TODO: Add serialization and deserialization methods for this somehow. public Pattern pattern; } }