mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-02-11 11:40:40 +00:00
Fixed LavaFlow Click bug
LavaFlow was not obeying the ClickLavaCleanupDelay and ClickLandCleanupDelay options.
This commit is contained in:
parent
9d27efacef
commit
a4da9c5c4e
1 changed files with 5 additions and 6 deletions
|
@ -146,14 +146,13 @@ public class LavaFlow
|
|||
return;
|
||||
}
|
||||
|
||||
double removeDelay = AvatarState.isAvatarState(player) ? AS_SHIFT_REMOVE_DELAY : SHIFT_REMOVE_DELAY;
|
||||
if(System.currentTimeMillis() - time > removeDelay){
|
||||
remove();
|
||||
return;
|
||||
}
|
||||
|
||||
if(type == AbilityType.SHIFT)
|
||||
{
|
||||
double removeDelay = AvatarState.isAvatarState(player) ? AS_SHIFT_REMOVE_DELAY : SHIFT_REMOVE_DELAY;
|
||||
if(System.currentTimeMillis() - time > removeDelay){
|
||||
remove();
|
||||
return;
|
||||
}
|
||||
if(!player.isSneaking() && !removing){
|
||||
if(affectedBlocks.size() > 0){
|
||||
removeOnDelay();
|
||||
|
|
Loading…
Reference in a new issue