From e9136c9cbbf9010b8352127e129c1cd290f377bd Mon Sep 17 00:00:00 2001 From: mat <27899617+mat-1@users.noreply.github.com> Date: Wed, 11 Dec 2024 19:51:12 -0600 Subject: Implement EntityPositionSync (#196) * implement EntityPositionSync * fix EntityPositionSync setting the wrong vec_delta_codec and also move into a RelativeEntityUpdate --- azalea-world/src/world.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'azalea-world/src') diff --git a/azalea-world/src/world.rs b/azalea-world/src/world.rs index 066981e5..0a09d387 100644 --- a/azalea-world/src/world.rs +++ b/azalea-world/src/world.rs @@ -1,4 +1,5 @@ use std::fmt::Formatter; +use std::hash::{Hash, Hasher}; use std::{ collections::{HashMap, HashSet}, fmt::Debug, @@ -44,8 +45,8 @@ impl PartialInstance { #[derive(Component, Copy, Clone, Debug, PartialEq, Eq, Deref, DerefMut)] pub struct MinecraftEntityId(pub u32); -impl std::hash::Hash for MinecraftEntityId { - fn hash(&self, hasher: &mut H) { +impl Hash for MinecraftEntityId { + fn hash(&self, hasher: &mut H) { hasher.write_u32(self.0); } } -- cgit v1.2.3