LavaFlow not cleaning while shift held.

Fixed a bug where LavaFlow was not being removed if the user kept the
shift button held down. Now it cleans up regardless of whether they are
still trying to bend a LavaFlow.
This commit is contained in:
nathank33 2014-09-09 21:12:41 -07:00
parent d0a490245b
commit 86ce948fa0

View file

@ -143,7 +143,12 @@ public class LavaFlow
remove();
return;
}
double removeDelay = AvatarState.isAvatarState(player) ? AS_SHIFT_REMOVE_DELAY : SHIFT_REMOVE_DELAY;
if(System.currentTimeMillis() - time > removeDelay){
remove();
return;
}
if(type == AbilityType.SHIFT)
{