Skip to content

Commit d28e6b1

Browse files
committed
proper check for if the config has been initialized
1 parent 254a514 commit d28e6b1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

core/src/main/java/net/j4c0b3y/api/config/StaticConfig.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,8 @@ public void load() {
139139
relocate();
140140

141141
// If fields are empty, perform the initialization.
142-
if (fields.isEmpty()) {
142+
if (sections.isEmpty()) {
143+
sections.put("", new LinkedHashSet<>());
143144
initialize(getClass(), "");
144145
}
145146

0 commit comments

Comments
 (0)