@@ -70,20 +70,19 @@ public static void activateHooks() {
70
70
using ( new DetourContext { After = { "*" } } ) {
71
71
// fix player specific behavior allowing them to go through upside-down jumpthrus.
72
72
On . Celeste . Player . ctor += onPlayerConstructor ;
73
- }
74
-
75
73
76
- // block player if they try to climb past an upside-down jumpthru.
77
- IL . Celeste . Player . ClimbUpdate += patchPlayerClimbUpdate ;
74
+ // block player if they try to climb past an upside-down jumpthru.
75
+ IL . Celeste . Player . ClimbUpdate += patchPlayerClimbUpdate ;
78
76
79
- // ignore upside-down jumpthrus in select places.
80
- playerOrigUpdateHook = new ILHook ( typeof ( Player ) . GetMethod ( "orig_Update" ) , filterOutJumpThrusFromCollideChecks ) ;
81
- IL . Celeste . Player . DashUpdate += filterOutJumpThrusFromCollideChecks ;
82
- IL . Celeste . Player . RedDashUpdate += filterOutJumpThrusFromCollideChecks ;
83
- IL . Celeste . Actor . MoveVExact += filterOutJumpThrusFromCollideChecks ;
77
+ // ignore upside-down jumpthrus in select places.
78
+ playerOrigUpdateHook = new ILHook ( typeof ( Player ) . GetMethod ( "orig_Update" ) , filterOutJumpThrusFromCollideChecks ) ;
79
+ IL . Celeste . Player . DashUpdate += filterOutJumpThrusFromCollideChecks ;
80
+ IL . Celeste . Player . RedDashUpdate += filterOutJumpThrusFromCollideChecks ;
81
+ IL . Celeste . Actor . MoveVExact += filterOutJumpThrusFromCollideChecks ;
84
82
85
- // listen for the player unducking, to knock the player down before they would go through upside down jumpthrus.
86
- On . Celeste . Player . Update += onPlayerUpdate ;
83
+ // listen for the player unducking, to knock the player down before they would go through upside down jumpthrus.
84
+ On . Celeste . Player . Update += onPlayerUpdate ;
85
+ }
87
86
}
88
87
89
88
public static void deactivateHooks ( ) {
0 commit comments