From cfbfdd77b4a400ef3bace378ff413aa2ff3bf57c Mon Sep 17 00:00:00 2001 From: mat Date: Mon, 8 Jan 2024 00:12:54 -0600 Subject: fix ping packet, explosion packet, and panic less --- azalea-physics/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'azalea-physics/src/lib.rs') 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); -- cgit v1.2.3