FastSwim bugfix

This commit is contained in:
Simp 2018-12-28 22:13:41 -05:00
parent 12dc9f25f3
commit 8302209b29

View file

@ -48,7 +48,7 @@ public class FastSwim extends WaterAbility implements PassiveAbility {
}
if (this.bPlayer.getBoundAbility() == null || (this.bPlayer.getBoundAbility() != null && !this.bPlayer.getBoundAbility().isSneakAbility())) {
if (!this.player.isSneaking()) {
if (this.player.isSneaking()) {
if (isWater(this.player.getLocation().getBlock()) && !this.bPlayer.isOnCooldown(this)) {
player.setVelocity(this.player.getEyeLocation().getDirection().clone().normalize().multiply(this.swimSpeed));
}