mirror of
https://github.com/CarmJos/EasyConfiguration.git
synced 2026-06-04 18:48:20 +08:00
fix(list): Fixed error when getting the section list
This commit is contained in:
@@ -851,6 +851,8 @@ public interface ConfigureSection {
|
|||||||
return getList(path, obj -> {
|
return getList(path, obj -> {
|
||||||
if (obj instanceof ConfigureSection) {
|
if (obj instanceof ConfigureSection) {
|
||||||
return (ConfigureSection) obj;
|
return (ConfigureSection) obj;
|
||||||
|
} else if (obj instanceof Map) {
|
||||||
|
return createSection(childPath(path), (Map<?, ?>) obj);
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user