mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2024-12-23 00:15:05 +00:00
AirSwipe is affected by AvatarState
This commit is contained in:
parent
cd00f41234
commit
2ff4fa93e4
1 changed files with 2 additions and 0 deletions
|
@ -150,6 +150,8 @@ public class AirSwipe {
|
|||
double factor = 1;
|
||||
if (System.currentTimeMillis() >= time + maxchargetime) {
|
||||
factor = maxfactor;
|
||||
} else if (AvatarState.isAvatarState(player)) {
|
||||
factor = AvatarState.getValue(factor);
|
||||
} else {
|
||||
factor = maxfactor
|
||||
* (double) (System.currentTimeMillis() - time)
|
||||
|
|
Loading…
Reference in a new issue