Curios slots rendering !
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import type { EntityEvent, PlayerInfo } from "$/common/protocol.ts";
|
||||
import { TICK_DELTA } from "$/common/constants.ts";
|
||||
import { ItemStack } from "$/common/inventory.ts";
|
||||
import type { ClientLevel } from "../level/client_level.ts";
|
||||
import { Player } from "./player.ts";
|
||||
|
||||
@@ -27,6 +28,7 @@ export class RemotePlayer extends Player {
|
||||
if (info.skin) {
|
||||
this.set_skin(info.skin, info.slim);
|
||||
}
|
||||
this.worn = (info.worn ?? []).map(ItemStack.from_data);
|
||||
}
|
||||
|
||||
lerp_to(x: number, y: number, z: number, yaw: number, pitch: number) {
|
||||
|
||||
Reference in New Issue
Block a user