diff options
author | isXander <xandersmith2008@gmail.com> | 2022-11-13 20:13:39 +0000 |
---|---|---|
committer | isXander <xandersmith2008@gmail.com> | 2022-11-13 20:13:39 +0000 |
commit | 29770a651daa38a18b99eecd5ecf90cf90ceeb0f (patch) | |
tree | 3aa03fb50e98eccc5c6422c35c575b7bb3541e9e /src/main/java/dev/isxander/yacl/config/ConfigInstance.java | |
parent | 6f3dc40a6bc554b6decb685cb6d1eb6370b1eea6 (diff) | |
download | YetAnotherConfigLib-29770a651daa38a18b99eecd5ecf90cf90ceeb0f.tar.gz YetAnotherConfigLib-29770a651daa38a18b99eecd5ecf90cf90ceeb0f.tar.bz2 YetAnotherConfigLib-29770a651daa38a18b99eecd5ecf90cf90ceeb0f.zip |
changelog & remove YACLConfigManager.java as it was actually pretty useless, document GsonConfigInstance as well
Diffstat (limited to 'src/main/java/dev/isxander/yacl/config/ConfigInstance.java')
-rw-r--r-- | src/main/java/dev/isxander/yacl/config/ConfigInstance.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/main/java/dev/isxander/yacl/config/ConfigInstance.java b/src/main/java/dev/isxander/yacl/config/ConfigInstance.java index 5271ea2..a7c013c 100644 --- a/src/main/java/dev/isxander/yacl/config/ConfigInstance.java +++ b/src/main/java/dev/isxander/yacl/config/ConfigInstance.java @@ -47,9 +47,7 @@ public abstract class ConfigInstance<T> { } public YetAnotherConfigLib buildConfig(BiFunction<ConfigInstance<T>, YetAnotherConfigLib.Builder, YetAnotherConfigLib.Builder> builder) { - return builder.apply(this, YetAnotherConfigLib.createBuilder()) - .save(this::save) - .build(); + return builder.apply(this, YetAnotherConfigLib.createBuilder().save(this::save)).build(); } public abstract void save(); |