mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Dont add timeloopcontroller to base system
This commit is contained in:
parent
0036028404
commit
13b28fa372
@ -13,6 +13,9 @@ namespace NewHorizons.Components
|
|||||||
|
|
||||||
public void Update()
|
public void Update()
|
||||||
{
|
{
|
||||||
|
// So that mods can turn the time loop on/off using the TimLoop.SetTimeLoopEnabled method
|
||||||
|
if (!TimeLoop._timeLoopEnabled) return;
|
||||||
|
|
||||||
// Stock gives like 33 seconds after the sun collapses
|
// Stock gives like 33 seconds after the sun collapses
|
||||||
if (_supernovaHappened && Time.time > _supernovaTime + 50f)
|
if (_supernovaHappened && Time.time > _supernovaTime + 50f)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -34,7 +34,8 @@ namespace NewHorizons.Handlers
|
|||||||
if (Main.Instance.CurrentStarSystem == "EyeOfTheUniverse") return;
|
if (Main.Instance.CurrentStarSystem == "EyeOfTheUniverse") return;
|
||||||
|
|
||||||
// Small mod compat change for StopTime - do nothing if it's enabled
|
// Small mod compat change for StopTime - do nothing if it's enabled
|
||||||
if (system.Config.enableTimeLoop && !OtherModUtil.IsEnabled("_nebula.StopTime"))
|
// Do not add our custom time loop controller in the base game system: It will handle itself
|
||||||
|
if (Main.Instance.CurrentStarSystem != "SolarSystem" && system.Config.enableTimeLoop && !OtherModUtil.IsEnabled("_nebula.StopTime"))
|
||||||
{
|
{
|
||||||
var timeLoopController = new GameObject("TimeLoopController");
|
var timeLoopController = new GameObject("TimeLoopController");
|
||||||
timeLoopController.AddComponent<TimeLoopController>();
|
timeLoopController.AddComponent<TimeLoopController>();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user