This commit is contained in:
yuzuki999
2023-07-24 07:30:22 +08:00
parent cda0b6711e
commit 15118de367
2 changed files with 2 additions and 2 deletions

View File

@@ -16,7 +16,7 @@ func NewCore(c *conf.CoreConfig) (Core, error) {
if types := strings.Split(c.Type, " "); len(types) > 1 {
var cs []Core
for _, t := range types {
f, ok := cores[strings.ToLower(c.Type)]
f, ok := cores[strings.ToLower(t)]
if !ok {
return nil, errors.New("unknown core type: " + t)
}