We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c633601 commit 1126796Copy full SHA for 1126796
Entities/SidewaysJumpThru.cs
@@ -200,7 +200,8 @@ private static void modCollideChecks(ILContext il) {
200
// and we are checking the collision on the left side of the player for example.
201
bool collideOnLeftSideOfPlayer = (self.Position.X > checkAtPosition.X);
202
SidewaysJumpThru jumpthru = self.CollideFirstOutside<SidewaysJumpThru>(checkAtPosition);
203
- return jumpthru != null && self is Player player && (jumpthru.AllowLeftToRight == collideOnLeftSideOfPlayer);
+ return jumpthru != null && self is Player player && (jumpthru.AllowLeftToRight == collideOnLeftSideOfPlayer)
204
+ && jumpthru.Bottom >= self.Top + checkAtPosition.Y - self.Position.Y + 3;
205
});
206
}
207
0 commit comments