Swimming
This commit is contained in:
@@ -29,6 +29,7 @@ export class RemotePlayer extends Player {
|
||||
this.set_skin(info.skin, info.slim);
|
||||
}
|
||||
this.worn = (info.worn ?? []).map(ItemStack.from_data);
|
||||
this.set_swimming(info.swimming === true);
|
||||
}
|
||||
|
||||
lerp_to(x: number, y: number, z: number, yaw: number, pitch: number) {
|
||||
@@ -53,5 +54,6 @@ export class RemotePlayer extends Player {
|
||||
this.y += (this.target_y - this.y) * t;
|
||||
this.z += (this.target_z - this.z) * t;
|
||||
this.update_walk_animation();
|
||||
this.update_swim_animation();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user