Create loop runner for client

master
jordan4ibanez 2022-09-02 23:33:19 -04:00
parent f943636512
commit ef1fce1b0f
1 changed files with 5 additions and 2 deletions

View File

@ -33,7 +33,6 @@ shared static this() {
];
}
private void playerClientIntakeKeyInputs() {
double deltaMultiplier = 100;
@ -71,6 +70,10 @@ private void addVelocity(Vector3d moreVelocity) {
velocity.z += moreVelocity.z;
if (velocity.length() > speed["walk"]) {
velocity.normalize().mul(3);
velocity.normalize().mul(speed["walk"]);
}
}
void onTick() {
playerClientIntakeKeyInputs();
}