Skip to content

Commit 6cfca74

Browse files
committed
Fix patch order for upside-down jumpthru player constructor patch
Fixes upside-down jumpthrus if Extended Variants are loaded **after** Spring Collab 2020.
1 parent 4b02483 commit 6cfca74

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)