mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-02-12 03:59:06 +00:00
WaterWave NPE Fix
Fixes WaterWave origin NPE.
This commit is contained in:
parent
e1bbc6ea7f
commit
3287e891c1
1 changed files with 4 additions and 0 deletions
|
@ -86,6 +86,10 @@ public class WaterWave {
|
||||||
remove();
|
remove();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (origin != null && !player.getWorld().equals(origin.getWorld())) {
|
||||||
|
remove();
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (type != AbilityType.RELEASE) {
|
if (type != AbilityType.RELEASE) {
|
||||||
if (!GeneralMethods.canBend(player.getName(), "WaterSpout") || !player.hasPermission("bending.ability.WaterSpout.Wave")) {
|
if (!GeneralMethods.canBend(player.getName(), "WaterSpout") || !player.hasPermission("bending.ability.WaterSpout.Wave")) {
|
||||||
remove();
|
remove();
|
||||||
|
|
Loading…
Reference in a new issue