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:
nathank33 2014-09-14 18:16:39 -07:00
parent 85ce6fb00a
commit c741cd7da6

View file

@ -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)){