From d6a4d9134724aeabb1521ce7ee1958eba3260c0d Mon Sep 17 00:00:00 2001 From: mat Date: Sun, 16 Mar 2025 04:23:14 +0000 Subject: [PATCH] impl from u32 for minecraftentityid --- azalea-world/src/world.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/azalea-world/src/world.rs b/azalea-world/src/world.rs index 6b72c2c5..a650f152 100644 --- a/azalea-world/src/world.rs +++ b/azalea-world/src/world.rs @@ -102,6 +102,11 @@ impl From for MinecraftEntityId { Self(id) } } +impl From for MinecraftEntityId { + fn from(id: u32) -> Self { + Self(id as i32) + } +} /// Keep track of certain metadatas that are only relevant for this partial /// world.