1
mirror of https://github.com/CarmJos/EasyConfiguration.git synced 2026-06-04 18:48:20 +08:00

feat(section): Implement createSection() for ShadedSection

This commit is contained in:
LSeng
2025-02-22 23:56:45 +08:00
parent 11f1f36a15
commit 842cd78ce3
@@ -96,7 +96,12 @@ public class ShadedSection implements ConfigureSection {
@Override @Override
public @NotNull ConfigureSection createSection(@NotNull Map<?, ?> data) { public @NotNull ConfigureSection createSection(@NotNull Map<?, ?> data) {
throw new UnsupportedOperationException("not supported yet"); if (source == null) {
return new ShadedSection(this, template, MemorySection.of(data));
} else {
ConfigureSection section = source.createSection(data);
return new ShadedSection(this, template, section);
}
} }
@Override @Override