mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-02-11 11:40:40 +00:00
WaterWave NPE Fix
If the user set the ChargeTime configuration option to 0 milliseconds then it was possible for the user to get NullPointerExceptions.
This commit is contained in:
parent
85ce6fb00a
commit
c741cd7da6
1 changed files with 3 additions and 0 deletions
|
@ -103,6 +103,9 @@ public class WaterWave
|
|||
}
|
||||
else if(type == AbilityType.SHIFT)
|
||||
{
|
||||
if(direction == null){
|
||||
direction = player.getEyeLocation().getDirection();
|
||||
}
|
||||
if(!charging)
|
||||
{
|
||||
if(!containsType(player, AbilityType.CLICK)){
|
||||
|
|
Loading…
Reference in a new issue