mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 06:28:49 +00:00
Fixup config map reading inconsistencies, close #471
This commit is contained in:
9 files changed
+114
-58
No files matched your search
@@ -474,17 +474,16 @@ public abstract class Database {
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public String getName() {
|
||||
public String getDefaultName() {
|
||||
return defaultName;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public static Map<String, String> getConfigMap() {
|
||||
return Arrays.stream(values())
|
||||
.collect(Collectors.toMap(
|
||||
Table::name,
|
||||
action -> action.defaultName
|
||||
));
|
||||
return Arrays.stream(values()).collect(Collectors.toMap(
|
||||
table -> table.name().toLowerCase(Locale.ENGLISH),
|
||||
Table::getDefaultName
|
||||
));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user