diff options
| author | mat <git@matdoes.dev> | 2024-01-08 00:12:54 -0600 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2024-01-08 00:12:54 -0600 |
| commit | cfbfdd77b4a400ef3bace378ff413aa2ff3bf57c (patch) | |
| tree | 2d5fc56e4b2fbccb27b0a07c14002cf4c5eefaa0 /azalea-physics/src | |
| parent | 0aa439d5caa8028b6d310de45258cbcef16ca2eb (diff) | |
| download | azalea-drasl-cfbfdd77b4a400ef3bace378ff413aa2ff3bf57c.tar.xz | |
fix ping packet, explosion packet, and panic less
Diffstat (limited to 'azalea-physics/src')
| -rw-r--r-- | azalea-physics/src/lib.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/azalea-physics/src/lib.rs b/azalea-physics/src/lib.rs index a69c1bcf..55f54ccd 100644 --- a/azalea-physics/src/lib.rs +++ b/azalea-physics/src/lib.rs @@ -74,9 +74,9 @@ fn travel( jumping, ) in &mut query { - let world_lock = instance_container - .get(world_name) - .expect("All entities should be in a valid world"); + let Some(world_lock) = instance_container.get(world_name) else { + continue; + }; let world = world_lock.read(); // if !self.is_effective_ai() && !self.is_controlled_by_local_instance() { // // this.calculateEntityAnimation(this, this instanceof FlyingAnimal); |
