mirror of
https://github.com/funkemunky/KauriV3.git
synced 2026-06-02 14:32:17 +00:00
Adding new Velocity (B), finally added working log functionality
This commit is contained in:
@@ -162,7 +162,6 @@ public class PacketHandler {
|
||||
player.getVelocityHandler().onPre(packet);
|
||||
} else player.getVelocityHandler().onPost(packet);
|
||||
if(ka.isEnd() && player.getInfo().getVelocityHistory().contains(velocity)) {
|
||||
player.getOnVelocityTasks().forEach(task -> task.accept(velocity));
|
||||
player.getInfo().setDoingVelocity(false);
|
||||
player.getInfo().getVelocity().reset();
|
||||
synchronized (player.getInfo().getVelocityHistory()) {
|
||||
@@ -170,6 +169,10 @@ public class PacketHandler {
|
||||
}
|
||||
}
|
||||
});
|
||||
player.runKeepaliveAction(ka -> {
|
||||
if(player.getInfo().getVelocityHistory().contains(velocity))
|
||||
player.getOnVelocityTasks().forEach(task -> task.accept(velocity));
|
||||
}, 1);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user