mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2024-12-23 00:15:05 +00:00
Fix WaterSpout and Water Passive
This commit is contained in:
parent
3b8bbf53c2
commit
3d707be2aa
3 changed files with 6 additions and 3 deletions
|
@ -88,7 +88,6 @@ public class AbilityModuleManager {
|
|||
if (a == StockAbilities.Torrent) shiftabilities.add(a.name());
|
||||
if (a == StockAbilities.WaterManipulation) shiftabilities.add(a.name());
|
||||
if (a == StockAbilities.IceSpike) shiftabilities.add(a.name());
|
||||
if (a == StockAbilities.WaterSpout) shiftabilities.add(a.name());
|
||||
}
|
||||
}
|
||||
else if (StockAbilities.isEarthbending(a)) {
|
||||
|
|
|
@ -28,11 +28,15 @@ public class WaterPassive {
|
|||
for (Player player: Bukkit.getServer().getOnlinePlayers()) {
|
||||
String ability = Methods.getBoundAbility(player);
|
||||
if (Methods.canBendPassive(player.getName(), Element.Water)) {
|
||||
if (ability == null || !AbilityModuleManager.shiftabilities.contains(ability)) {
|
||||
if (WaterSpout.instances.containsKey(player)) {
|
||||
continue;
|
||||
}
|
||||
else if (ability == null || !AbilityModuleManager.shiftabilities.contains(ability)) {
|
||||
if (player.isSneaking() && Methods.isWater(player.getLocation().getBlock())) {
|
||||
player.setVelocity(player.getEyeLocation().getDirection().clone().normalize().multiply(swimFactor));
|
||||
}
|
||||
}
|
||||
|
||||
// if (player.getLocation().getBlock().isLiquid()) {
|
||||
// for (Block block: Methods.getBlocksAroundPoint(player.getLocation(), 2)) {
|
||||
// if (Methods.isAdjacentToThreeOrMoreSources(block) && Methods.isWater(block) && !tempHaltPassive.contains(player.getName())) {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
name: ProjectKorra
|
||||
author: ProjectKorra
|
||||
version: 1.2.0 BETA 14
|
||||
version: 1.2.0 BETA 15
|
||||
main: com.projectkorra.ProjectKorra.ProjectKorra
|
||||
commands:
|
||||
projectkorra:
|
||||
|
|
Loading…
Reference in a new issue