diff options
Diffstat (limited to 'azalea-world/src')
| -rw-r--r-- | azalea-world/src/world.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/azalea-world/src/world.rs b/azalea-world/src/world.rs index 3428ab5e..6b72c2c5 100644 --- a/azalea-world/src/world.rs +++ b/azalea-world/src/world.rs @@ -97,6 +97,11 @@ impl Display for MinecraftEntityId { write!(f, "eid({})", self.0) } } +impl From<i32> for MinecraftEntityId { + fn from(id: i32) -> Self { + Self(id) + } +} /// Keep track of certain metadatas that are only relevant for this partial /// world. |
