i know why it does not work

This commit is contained in:
Christoph J. Scherr 2023-11-10 15:12:46 +01:00
parent 4fff71b2ac
commit bd44fab93e
1 changed files with 3 additions and 2 deletions

View File

@ -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;
}
}