diff options
author | Xander <xander@isxander.dev> | 2023-11-08 09:51:39 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-08 09:51:39 +0000 |
commit | 953645023c829735663493511390948bf69714f8 (patch) | |
tree | 89d509a8c3a73edb78ae6b4ef5b87cef7091bc77 | |
parent | 62820fc8116f19c2be3e73d0ab90b1078eafdb2b (diff) | |
download | YetAnotherConfigLib-953645023c829735663493511390948bf69714f8.tar.gz YetAnotherConfigLib-953645023c829735663493511390948bf69714f8.tar.bz2 YetAnotherConfigLib-953645023c829735663493511390948bf69714f8.zip |
Remove use of deprecated ConfigClassHandler#serializer in YetAnotherConfigLib#create
-rw-r--r-- | common/src/main/java/dev/isxander/yacl3/api/YetAnotherConfigLib.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/src/main/java/dev/isxander/yacl3/api/YetAnotherConfigLib.java b/common/src/main/java/dev/isxander/yacl3/api/YetAnotherConfigLib.java index 76f1ed7..68e9986 100644 --- a/common/src/main/java/dev/isxander/yacl3/api/YetAnotherConfigLib.java +++ b/common/src/main/java/dev/isxander/yacl3/api/YetAnotherConfigLib.java @@ -53,7 +53,7 @@ public interface YetAnotherConfigLib { } static <T> YetAnotherConfigLib create(ConfigClassHandler<T> configHandler, ConfigBackedBuilder<T> builder) { - return builder.build(configHandler.defaults(), configHandler.instance(), createBuilder().save(configHandler.serializer()::save)).build(); + return builder.build(configHandler.defaults(), configHandler.instance(), createBuilder().save(configHandler::save)).build(); } /** |