Skip to content

Commit 283e011

Browse files
authored
Merge pull request #101 from EverestAPI/upside_down_jumpthru_patch_order_fix
Fix patch order for upside-down jumpthru player constructor patch
2 parents 2dc1b1b + 6cfca74 commit 283e011

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Entities/UpsideDownJumpThru.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,10 @@ public static void Load() {
2828
On.Celeste.Platform.MoveVExactCollideSolids += onPlatformMoveVExactCollideSolids;
2929
}
3030

31-
// fix player specific behavior allowing them to go through upside-down jumpthrus.
32-
On.Celeste.Player.ctor += onPlayerConstructor;
31+
using (new DetourContext { After = { "*" } }) {
32+
// fix player specific behavior allowing them to go through upside-down jumpthrus.
33+
On.Celeste.Player.ctor += onPlayerConstructor;
34+
}
3335

3436
// block player if they try to climb past an upside-down jumpthru.
3537
IL.Celeste.Player.ClimbUpdate += patchPlayerClimbUpdate;

0 commit comments

Comments
 (0)