mirror of
https://github.com/project-redbud/FunGame-Core.git
synced 2025-04-21 03:29:36 +08:00
修复没有读取前置节点的问题
This commit is contained in:
parent
e623a1809c
commit
35cdededfc
@ -88,7 +88,11 @@ namespace Milimoe.FunGame.Core.Api.Utility
|
|||||||
{
|
{
|
||||||
NovelNode obj = dict[key];
|
NovelNode obj = dict[key];
|
||||||
base.Add(key, obj);
|
base.Add(key, obj);
|
||||||
if (obj.Values.TryGetValue(nameof(NovelNode.NextNodes), out object? value) && value is List<string> 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<string> nextKeys)
|
||||||
{
|
{
|
||||||
foreach (string nextKey in nextKeys)
|
foreach (string nextKey in nextKeys)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user