Skip to content

Commit 4f9901f

Browse files
committed
cleanup
1 parent fefb4ab commit 4f9901f

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

Celeste.Mod.mm/Mod/Everest/Everest.Events.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,6 @@ internal static void BeforeFreezeUpdate(_Level level)
247247
/// Called at the very end of <see cref="patch_Level.FreezeUpdate"/>.
248248
/// </summary>
249249
public static event Action<_Level> OnAfterFreezeUpdate;
250-
251250
internal static void AfterFreezeUpdate(_Level level)
252251
=> OnAfterFreezeUpdate?.Invoke(level);
253252
}

Celeste.Mod.mm/Patches/Level.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public static void RegisterLoadOverride(Level level, LoadOverride loadOverride)
105105

106106
// ... this is gonna be fun
107107
[MonoModIgnore] // don't put this in `Level` when we're done
108-
internal extern static void base_FreezeUpdate(); // dummy method, will be replaced with the actual `base.FreezeUpdate` call in the il patch
108+
internal extern static void base_FreezeUpdate(); // dummy method, will be replaced with the actual `base.FreezeUpdate` call in the IL patch
109109
[PatchLevelFreezeUpdate] // add the `virtual` flag to this method so it overrides the one in `patch_Scene` properly and calls `base.FreezeUpdate`
110110
// todo: does there need to be anything else in here?
111111
public void FreezeUpdate() {
@@ -736,7 +736,7 @@ class PatchLevelLoaderDecalCreationAttribute : Attribute { }
736736
class PatchLevelUpdateAttribute : Attribute { }
737737

738738
/// <summary>
739-
/// Patch our <see cref="Celeste.patch_Level.FreezeUpdate"/> to be marked as <c>virtual</c> so it actually overrides the base method.
739+
/// Patch our <see cref="Celeste.patch_Level.FreezeUpdate"/> to be marked as <c>virtual</c> so it actually overrides the base method, and to actually call the base method instead of the dummy.
740740
/// </summary>
741741
[MonoModCustomMethodAttribute(nameof(MonoModRules.PatchLevelFreezeUpdate))]
742742
class PatchLevelFreezeUpdateAttribute : Attribute { }

0 commit comments

Comments
 (0)