SurvivalFly - 1.13 Swimming (Sea_Pickle swimup)

Allows for a higher y distance change when the player is touching the ground. This will fix the issue of swimming onto sea_pickles which act like slabs.

ToDo: Investigate what makes sea pickles flag but not slabs if they both have the same block flags?
This commit is contained in:
CaptainObvious0 2019-03-13 17:33:06 -05:00 committed by GitHub
parent 5e04474b4e
commit 1dcf830535
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -1869,7 +1869,11 @@ public class SurvivalFly extends Check {
data.sfNoLowJump = true;
// Expected envelopes.
final double baseSpeed = Magic.swimBaseSpeedV(); // TODO: Lava?
final double baseSpeed;
if (player.isOnGround()) {
baseSpeed = Magic.swimBaseSpeedV() + 0.1;
} else {
baseSpeed = Magic.swimBaseSpeedV(); } // TODO: Lava?
final double yDistAbs = Math.abs(yDistance);
// TODO: Later also cover things like a sudden stop.