From 35cdededfc068e46a70b3228c8f51db42efc3e2e Mon Sep 17 00:00:00 2001 From: milimoe Date: Thu, 13 Feb 2025 00:13:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=B2=A1=E6=9C=89=E8=AF=BB?= =?UTF-8?q?=E5=8F=96=E5=89=8D=E7=BD=AE=E8=8A=82=E7=82=B9=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Api/Utility/NovelConfig.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Api/Utility/NovelConfig.cs b/Api/Utility/NovelConfig.cs index fa1b670..16f6786 100644 --- a/Api/Utility/NovelConfig.cs +++ b/Api/Utility/NovelConfig.cs @@ -88,7 +88,11 @@ namespace Milimoe.FunGame.Core.Api.Utility { NovelNode obj = dict[key]; base.Add(key, obj); - if (obj.Values.TryGetValue(nameof(NovelNode.NextNodes), out object? value) && value is List nextKeys) + if (obj.Values.TryGetValue(nameof(NovelNode.Previous), out object? value) && value is string prevKey && dict.Values.FirstOrDefault(n => n.Key == prevKey) is NovelNode prev) + { + obj.Previous = prev; + } + if (obj.Values.TryGetValue(nameof(NovelNode.NextNodes), out value) && value is List nextKeys) { foreach (string nextKey in nextKeys) {