Skip to content

Commit 1126796

Browse files
committed
Fix being able to grab the bottom of sideways jumpthrus
1 parent c633601 commit 1126796

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Entities/SidewaysJumpThru.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,8 @@ private static void modCollideChecks(ILContext il) {
200200
// and we are checking the collision on the left side of the player for example.
201201
bool collideOnLeftSideOfPlayer = (self.Position.X > checkAtPosition.X);
202202
SidewaysJumpThru jumpthru = self.CollideFirstOutside<SidewaysJumpThru>(checkAtPosition);
203-
return jumpthru != null && self is Player player && (jumpthru.AllowLeftToRight == collideOnLeftSideOfPlayer);
203+
return jumpthru != null && self is Player player && (jumpthru.AllowLeftToRight == collideOnLeftSideOfPlayer)
204+
&& jumpthru.Bottom >= self.Top + checkAtPosition.Y - self.Position.Y + 3;
204205
});
205206
}
206207

0 commit comments

Comments
 (0)