Skip to content

Commit 9573564

Browse files
committed
Fix movementCounter not being reset w/ mod jumpthrus on the screen
1 parent 505f11b commit 9573564

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Entities/SidewaysJumpThru.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ private static bool onActorMoveHExact(On.Celeste.Actor.orig_MoveHExact orig, Act
8585
if (didCollide) {
8686
Vector2 movementCounter = (Vector2) actorMovementCounter.GetValue(self);
8787
movementCounter.X = 0f;
88+
actorMovementCounter.SetValue(self, movementCounter);
8889
onCollide?.Invoke(new CollisionData {
8990
Direction = Vector2.UnitX * moveDirection,
9091
Moved = Vector2.UnitX * moveAmount,

Entities/UpsideDownJumpThru.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ private static bool onActorMoveVExact(On.Celeste.Actor.orig_MoveVExact orig, Act
8989
if (didCollide) {
9090
Vector2 movementCounter = (Vector2) actorMovementCounter.GetValue(self);
9191
movementCounter.Y = 0f;
92+
actorMovementCounter.SetValue(self, movementCounter);
9293
if (onCollide != null) {
9394
data = new CollisionData {
9495
Direction = Vector2.UnitY * moveDirection,

0 commit comments

Comments
 (0)