diff --git a/src/main/java/xyz/refinedev/api/storage/impl/ParentYamlStorage.java b/src/main/java/xyz/refinedev/api/storage/impl/ParentYamlStorage.java index deaafc7..4729d44 100644 --- a/src/main/java/xyz/refinedev/api/storage/impl/ParentYamlStorage.java +++ b/src/main/java/xyz/refinedev/api/storage/impl/ParentYamlStorage.java @@ -16,7 +16,7 @@ public abstract class ParentYamlStorage extends YamlStorage { * Set based cache for child storages of this Parent Storage * We keep it concurrent to allow asynchronous file I/O */ - private Set childStorages; + private List childStorages; /** * Initiation method for a config file @@ -38,7 +38,7 @@ public void addChildStorage(ChildYamlStorage storage) { // Bypass for constructor being called before default variable initialization if (childStorages == null) { - this.childStorages = Collections.synchronizedSet(new HashSet<>()); + this.childStorages = new ArrayList<>(); } this.childStorages.add(storage);