From 614b21129804930159f041ce3f51202bc3e1c0b6 Mon Sep 17 00:00:00 2001 From: mat Date: Fri, 17 Jun 2022 23:55:11 -0500 Subject: EntityStorage --- azalea-client/src/connect.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'azalea-client/src') diff --git a/azalea-client/src/connect.rs b/azalea-client/src/connect.rs index 1551ca69..2deaab68 100755 --- a/azalea-client/src/connect.rs +++ b/azalea-client/src/connect.rs @@ -19,7 +19,7 @@ use azalea_protocol::{ }, resolver, ServerAddress, }; -use azalea_world::{ChunkStorage, World}; +use azalea_world::{ChunkStorage, EntityStorage, World}; use std::{fmt::Debug, sync::Arc}; use tokio::sync::mpsc::{self, UnboundedReceiver, UnboundedSender}; use tokio::sync::Mutex; @@ -266,6 +266,7 @@ impl Client { height, min_y, storage: ChunkStorage::new(16), + entities: EntityStorage::new(), }); conn.lock() @@ -356,6 +357,7 @@ impl Client { y: p.y, z: p.z, }; + p.id; } GamePacket::ClientboundSetEntityDataPacket(p) => { // println!("Got set entity data packet {:?}", p); -- cgit v1.2.3