diff options
| author | mat <git@matdoes.dev> | 2025-03-06 04:11:05 +0000 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-03-06 04:11:19 +0000 |
| commit | cf66c4be100c898c64d57f9b92f31f809764dc2e (patch) | |
| tree | 9c093621b36e6372a094fc0e128a758bf76e25c7 /azalea-world/src/world.rs | |
| parent | c9022e8f671b5838f4d4ab446013c42191b07f37 (diff) | |
| download | azalea-drasl-cf66c4be100c898c64d57f9b92f31f809764dc2e.tar.xz | |
fix despawning entities on dimension change
Diffstat (limited to 'azalea-world/src/world.rs')
| -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. |
