Skip to content

Commit

Permalink
Change MinecraftEntityId entity id to i32 like every other entity id
Browse files Browse the repository at this point in the history
  • Loading branch information
ShayBox committed Oct 3, 2024
1 parent d7d1676 commit bd618c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions azalea-world/src/world.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ impl PartialInstance {
///
/// [`Entity`]: bevy_ecs::entity::Entity
#[derive(Component, Copy, Clone, Debug, PartialEq, Eq, Deref, DerefMut)]
pub struct MinecraftEntityId(pub u32);
pub struct MinecraftEntityId(pub i32);

impl std::hash::Hash for MinecraftEntityId {
fn hash<H: std::hash::Hasher>(&self, hasher: &mut H) {
hasher.write_u32(self.0);
hasher.write_i32(self.0);
}
}
impl nohash_hasher::IsEnabled for MinecraftEntityId {}
Expand Down

0 comments on commit bd618c3

Please sign in to comment.