Skip to content

Commit

Permalink
[fix] 读取schema类型后排序,解决生成不稳定的问题 (focus-creative-games#163)
Browse files Browse the repository at this point in the history
  • Loading branch information
alex4814 committed Jul 25, 2024
1 parent 7e2a8be commit a0aa472
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Luban.Core/GenerationContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ private List<DefTypeBase> CalculateExportTypes()
table.ValueTType.Apply(RefTypeVisitor.Ins, refTypes);
}

return refTypes.Values.ToList();
return refTypes.OrderBy(p => p.Key).Select(p => p.Value).ToList();
}

public static string GetInputDataPath()
Expand Down

0 comments on commit a0aa472

Please sign in to comment.