aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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.