Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 15 additions & 11 deletions Code/VitModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -253,13 +253,8 @@ public override void Initialize()
{
base.Initialize();
TriggerBeam.Initialize();
}
public override void Load()
{
//cacheing
deltaTimeInfo = typeof(Engine).GetProperty("DeltaTime");
rawDeltaTimeInfo = typeof(Engine).GetProperty("RawDeltaTime");
rendererListSceneInfo = typeof(RendererList).GetField("scene", BindingFlags.NonPublic | BindingFlags.Instance);

// All mods are loaded at Initialize()-time, so we can correctly check the presence of optional dependencies now
frostHelperLoaded = Everest.Loader.DependencyLoaded(new EverestModuleMetadata
{
Name = "FrostHelper",
Expand All @@ -270,6 +265,18 @@ public override void Load()
Name = "VivHelper",
Version = new Version(1, 5, 4)
});

if (frostHelperLoaded)
{
HookedKeyIceInit();
}
}
public override void Load()
{
//cacheing
deltaTimeInfo = typeof(Engine).GetProperty("DeltaTime");
rawDeltaTimeInfo = typeof(Engine).GetProperty("RawDeltaTime");
rendererListSceneInfo = typeof(RendererList).GetField("scene", BindingFlags.NonPublic | BindingFlags.Instance);

TypeHelper.Load();
NoJumpTrigger.Load();
Expand All @@ -279,10 +286,7 @@ public override void Load()
ForceDashCrystal.Load();
NoMoveTrigger.Load();
ResetDoorTrigger.Load();
if (frostHelperLoaded)
{
HookedKeyIceInit();
}

CustomWindController.Load();
TriggerTrigger.Load();
TimeCrystal.Load();
Expand Down