mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-02-15 21:29:05 +00:00
Added WaterArms falling block check to entitychangeblockevent.
This commit is contained in:
parent
9bbd231eef
commit
6aa5947481
1 changed files with 16 additions and 1 deletions
|
@ -131,6 +131,7 @@ import com.projectkorra.ProjectKorra.waterbending.IceSpike2;
|
||||||
import com.projectkorra.ProjectKorra.waterbending.Melt;
|
import com.projectkorra.ProjectKorra.waterbending.Melt;
|
||||||
import com.projectkorra.ProjectKorra.waterbending.OctopusForm;
|
import com.projectkorra.ProjectKorra.waterbending.OctopusForm;
|
||||||
import com.projectkorra.ProjectKorra.waterbending.Torrent;
|
import com.projectkorra.ProjectKorra.waterbending.Torrent;
|
||||||
|
import com.projectkorra.ProjectKorra.waterbending.WaterArms;
|
||||||
import com.projectkorra.ProjectKorra.waterbending.WaterManipulation;
|
import com.projectkorra.ProjectKorra.waterbending.WaterManipulation;
|
||||||
import com.projectkorra.ProjectKorra.waterbending.WaterMethods;
|
import com.projectkorra.ProjectKorra.waterbending.WaterMethods;
|
||||||
import com.projectkorra.ProjectKorra.waterbending.WaterPassive;
|
import com.projectkorra.ProjectKorra.waterbending.WaterPassive;
|
||||||
|
@ -518,6 +519,9 @@ public class PKListener implements Listener {
|
||||||
if (abil.equalsIgnoreCase("Torrent")) {
|
if (abil.equalsIgnoreCase("Torrent")) {
|
||||||
Torrent.create(player);
|
Torrent.create(player);
|
||||||
}
|
}
|
||||||
|
if (abil.equalsIgnoreCase("WaterArms")) {
|
||||||
|
new WaterArms(player);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (EarthMethods.isEarthAbility(abil)) {
|
if (EarthMethods.isEarthAbility(abil)) {
|
||||||
|
@ -712,6 +716,10 @@ public class PKListener implements Listener {
|
||||||
LavaSurge.falling.remove(entity);
|
LavaSurge.falling.remove(entity);
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
}
|
}
|
||||||
|
if (WaterArms.falling.containsKey(entity)) {
|
||||||
|
WaterArms.falling.remove(entity);
|
||||||
|
event.setCancelled(true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -827,7 +835,7 @@ public class PKListener implements Listener {
|
||||||
AirScooter.check(player);
|
AirScooter.check(player);
|
||||||
|
|
||||||
String abil = GeneralMethods.getBoundAbility(player);
|
String abil = GeneralMethods.getBoundAbility(player);
|
||||||
if (abil == null) return;
|
if (abil == null && !MultiAbilityManager.hasMultiAbilityBound(player)) return;
|
||||||
if (GeneralMethods.canBend(player.getName(), abil)) {
|
if (GeneralMethods.canBend(player.getName(), abil)) {
|
||||||
if (GeneralMethods.isDisabledStockAbility(abil))
|
if (GeneralMethods.isDisabledStockAbility(abil))
|
||||||
return;
|
return;
|
||||||
|
@ -1030,6 +1038,13 @@ public class PKListener implements Listener {
|
||||||
if (abil.equalsIgnoreCase("AvatarState")) {
|
if (abil.equalsIgnoreCase("AvatarState")) {
|
||||||
new AvatarState(player);
|
new AvatarState(player);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(MultiAbilityManager.hasMultiAbilityBound(player)){
|
||||||
|
abil = MultiAbilityManager.getBoundMultiAbility(player);
|
||||||
|
if (abil.equalsIgnoreCase("WaterArms")) {
|
||||||
|
new WaterArms(player);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue