From 51963990bc0cbbbca388b2ed015fd64ff6492d7b Mon Sep 17 00:00:00 2001 From: mat Date: Mon, 18 Sep 2023 23:25:18 -0500 Subject: fix entities not always being despawned after merge --- azalea-entity/src/plugin/indexing.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'azalea-entity') diff --git a/azalea-entity/src/plugin/indexing.rs b/azalea-entity/src/plugin/indexing.rs index a8ea9d85..d2049b6e 100644 --- a/azalea-entity/src/plugin/indexing.rs +++ b/azalea-entity/src/plugin/indexing.rs @@ -126,7 +126,7 @@ pub fn deduplicate_entities( info!( "Entity with id {id:?} / {new_entity:?} already existed in the world, merging it with {old_entity:?}" ); - break; + continue; } } else { error!("Entity was inserted into a world that doesn't exist."); @@ -309,6 +309,6 @@ pub fn remove_despawned_entities_from_indexes( // and now remove the entity from the ecs commands.entity(entity).despawn(); debug!("Despawned entity {entity:?} because it was not loaded by anything."); - return; + continue; } } -- cgit v1.2.3