diff options
| author | mat <27899617+mat-1@users.noreply.github.com> | 2024-12-11 19:51:12 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-11 19:51:12 -0600 |
| commit | e9136c9cbbf9010b8352127e129c1cd290f377bd (patch) | |
| tree | db83316a273153106dd3b343c9d6d4fce234d132 /azalea-world/src | |
| parent | 23932003d98db0f5f976146aa9a11e5d04a74695 (diff) | |
| download | azalea-drasl-e9136c9cbbf9010b8352127e129c1cd290f377bd.tar.xz | |
Implement EntityPositionSync (#196)
* implement EntityPositionSync
* fix EntityPositionSync setting the wrong vec_delta_codec and also move into a RelativeEntityUpdate
Diffstat (limited to 'azalea-world/src')
| -rw-r--r-- | azalea-world/src/world.rs | 5 |
1 files changed, 3 insertions, 2 deletions
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<H: std::hash::Hasher>(&self, hasher: &mut H) { +impl Hash for MinecraftEntityId { + fn hash<H: Hasher>(&self, hasher: &mut H) { hasher.write_u32(self.0); } } |
