Item entities
This commit is contained in:
@@ -53,11 +53,6 @@ export class ServerPlayer {
|
||||
return this.inventory.get_item(this.selected_slot);
|
||||
}
|
||||
|
||||
give(item: ItemStack) {
|
||||
// TODO: drop what doesn't fit once items can be on the ground
|
||||
this.inventory.add_item(item);
|
||||
}
|
||||
|
||||
info(): PlayerInfo {
|
||||
return { id: this.id, name: this.name, x: this.x, y: this.y, z: this.z, yaw: this.yaw, pitch: this.pitch };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user