fix: fixed order that Debug components are added to the player

This commit is contained in:
FreezeDriedMangoes 2022-05-13 12:29:42 -04:00
parent 11a8e5732f
commit 789db6854d

View File

@ -216,9 +216,9 @@ namespace NewHorizons
SystemCreationHandler.LoadSystem(SystemDict[CurrentStarSystem]);
LoadTranslations(ModHelper.Manifest.ModFolderPath + "AssetBundle/", this);
Instance.ModHelper.Events.Unity.FireOnNextUpdate(() => Locator.GetPlayerBody().gameObject.AddComponent<DebugMenu>());
Instance.ModHelper.Events.Unity.FireOnNextUpdate(() => Locator.GetPlayerBody().gameObject.AddComponent<DebugRaycaster>());
Instance.ModHelper.Events.Unity.FireOnNextUpdate(() => Locator.GetPlayerBody().gameObject.AddComponent<DebugPropPlacer>());
Instance.ModHelper.Events.Unity.FireOnNextUpdate(() => Locator.GetPlayerBody().gameObject.AddComponent<DebugMenu>());
// Warp drive
StarChartHandler.Init(SystemDict.Values.ToArray());