mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-02-11 19:50:37 +00:00
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:
parent
d0a490245b
commit
86ce948fa0
1 changed files with 6 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue