1
mirror of https://github.com/CarmJos/MineConfiguration.git synced 2026-06-04 13:55:03 +08:00

chore(deps): Update EasyConfiguration

This commit is contained in:
2025-02-20 00:08:55 +08:00
parent 180ccc5046
commit a7b1c06c8f
2 changed files with 6 additions and 2 deletions
@@ -23,7 +23,6 @@ public class BukkitSection implements ConfigureSection {
this.data = data; this.data = data;
} }
@Override
public @NotNull BukkitSource source() { public @NotNull BukkitSource source() {
return this.source; return this.source;
} }
@@ -52,6 +51,11 @@ public class BukkitSection implements ConfigureSection {
data().set(path, value); data().set(path, value);
} }
@Override
public void remove(@NotNull String path) {
data().set(path, null);
}
@Override @Override
public boolean contains(@NotNull String path) { public boolean contains(@NotNull String path) {
return data().contains(path); return data().contains(path);
@@ -55,7 +55,7 @@ public class BukkitSource extends FileConfigSource<BukkitSection, YamlConfigurat
@Override @Override
public void save() throws Exception { public void save() throws Exception {
CommentedYAMLWriter writer = new CommentedYAMLWriter( CommentedYAMLWriter writer = new CommentedYAMLWriter(
String.valueOf(this.separator()), 2, String.valueOf(this.pathSeparator()), 2,
holder.options().get(CommentableOptions.COMMENT_EMPTY_VALUE) holder.options().get(CommentableOptions.COMMENT_EMPTY_VALUE)
); );
try { try {