From bd618c3c6728210624bd2eb041b431b0558b8609 Mon Sep 17 00:00:00 2001 From: Shayne Hartford Date: Thu, 3 Oct 2024 17:43:37 -0400 Subject: [PATCH] Change MinecraftEntityId entity id to i32 like every other entity id --- azalea-world/src/world.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/azalea-world/src/world.rs b/azalea-world/src/world.rs index 84a5857ce..8a242b321 100644 --- a/azalea-world/src/world.rs +++ b/azalea-world/src/world.rs @@ -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(&self, hasher: &mut H) { - hasher.write_u32(self.0); + hasher.write_i32(self.0); } } impl nohash_hasher::IsEnabled for MinecraftEntityId {}