mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2024-11-01 01:42:18 +00:00
FastSwim bugfix
This commit is contained in:
parent
12dc9f25f3
commit
8302209b29
|
@ -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.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)) {
|
if (isWater(this.player.getLocation().getBlock()) && !this.bPlayer.isOnCooldown(this)) {
|
||||||
player.setVelocity(this.player.getEyeLocation().getDirection().clone().normalize().multiply(this.swimSpeed));
|
player.setVelocity(this.player.getEyeLocation().getDirection().clone().normalize().multiply(this.swimSpeed));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue