Fix deserialization problems

This commit is contained in:
okx-code
2021-11-02 21:44:02 +00:00
parent 50ccfd4266
commit 80f5808d56
4 changed files with 26 additions and 9 deletions
@@ -43,7 +43,9 @@ public class YamlDeserializer {
Set<String> rankup = rankupSection.getKeys(true);
messages = new HashMap<>(rankup.size());
for (String key : rankup) {
messages.put(MemorySection.createPath(rankupSection, key, section), rankupSection.getString(key));
if (!rankupSection.isConfigurationSection(key)) {
messages.put(MemorySection.createPath(rankupSection, key, section), rankupSection.getString(key));
}
}
} else {
messages = Collections.emptyMap();