Update SurvivalFly.java (1.13 Swimming)

Allow for faster swimming with Dolphins Grace potion (1.13 Swimming)
TODO: Fix swimming above water with Dolphins Grace
This commit is contained in:
CaptainObvious0 2019-03-01 15:16:01 -06:00 committed by GitHub
parent 732a06fa8e
commit a975efb1ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -879,7 +879,11 @@ public class SurvivalFly extends Check {
hAllowedDistance *= Magic.modDepthStrider[level];
// Modifiers: Most speed seems to be reached on ground, but couldn't nail down.
useBaseModifiers = true;
}
} else if (player.hasPotionEffect(PotionEffectType.DOLPHINS_GRACE)) {
// TODO: Allow for faster swimming above water with Dolhphins Grace
hAllowedDistance *= Magic.modDolphinsGrace;
useBaseModifiers = true;
}
}
// (Friction is used as is.)
}