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:
+6
-1
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user