aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2025-03-16 04:23:14 +0000
committermat <git@matdoes.dev>2025-03-16 04:23:14 +0000
commitd6a4d9134724aeabb1521ce7ee1958eba3260c0d (patch)
tree00614888b981df0e52d629058e3e4f28bb1a7b55
parentaeff08f5fa23a22376945a616504d735420eae50 (diff)
downloadazalea-drasl-d6a4d9134724aeabb1521ce7ee1958eba3260c0d.tar.xz
impl from u32 for minecraftentityid
-rw-r--r--azalea-world/src/world.rs5
1 files changed, 5 insertions, 0 deletions
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<i32> for MinecraftEntityId {
Self(id)
}
}
+impl From<u32> for MinecraftEntityId {
+ fn from(id: u32) -> Self {
+ Self(id as i32)
+ }
+}
/// Keep track of certain metadatas that are only relevant for this partial
/// world.