From 93b18d703724d53f60c36dfc405e30b2dd4c3c47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Sun, 12 May 2024 13:30:16 +0800 Subject: [PATCH] Fix merge template --- template/manager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/template/manager.go b/template/manager.go index 103cc15..9ee5e2a 100644 --- a/template/manager.go +++ b/template/manager.go @@ -40,7 +40,7 @@ func extendTemplate(rawTemplates []option.Template, root, current option.Templat } next = newNext } - newTemplate, err := badjson.Merge(current, next) + newTemplate, err := badjson.Merge(next, current) if err != nil { return option.Template{}, E.Cause(err, "initialize template[", current.Name, "]: merge extended template: ", current.Extend) }