This commit is contained in:
2026-10-02 11:07:09 -03:00
parent d5015edfa1
commit 9ca717d2d0
18 changed files with 449 additions and 38 deletions
+2
View File
@@ -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();
}
}