Skip to content

Commit 92280e4

Browse files
committed
[修复]1. 修复配置表不等待加载完成的BUG
1 parent 0c64db7 commit 92280e4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

GameFrameX.Config/ConfigComponent.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ private ConfigComponent()
1818

1919
private TablesComponent Tables { get; }
2020

21-
public async void LoadConfig()
21+
public async Task LoadConfig()
2222
{
2323
Tables.Init(Instance);
2424
LogHelper.Info("Load Config Start...");

GameFrameX.Hotfix/StartUp/AppStartUpHotfixGameByMain.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public override async Task StartAsync()
2626
public async void RunServer(bool reload = false)
2727
{
2828
// 不管是不是重启服务器,都要加载配置
29-
ConfigComponent.Instance.LoadConfig();
29+
await ConfigComponent.Instance.LoadConfig();
3030
if (reload)
3131
{
3232
ActorManager.ClearAgent();

0 commit comments

Comments
 (0)