aboutsummaryrefslogtreecommitdiff
path: root/azalea-entity/src/plugin
diff options
context:
space:
mode:
Diffstat (limited to 'azalea-entity/src/plugin')
-rw-r--r--azalea-entity/src/plugin/indexing.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/azalea-entity/src/plugin/indexing.rs b/azalea-entity/src/plugin/indexing.rs
index f1105d89..78d5fb7e 100644
--- a/azalea-entity/src/plugin/indexing.rs
+++ b/azalea-entity/src/plugin/indexing.rs
@@ -155,8 +155,8 @@ pub fn remove_despawned_entities_from_indexes(
Changed<LoadedBy>,
>,
) {
- for (entity, uuid, minecraft_id, position, world_name, loaded_by) in &query {
- let Some(instance_lock) = instance_container.get(world_name) else {
+ for (entity, uuid, minecraft_id, position, instance_name, loaded_by) in &query {
+ let Some(instance_lock) = instance_container.get(instance_name) else {
// the instance isn't even loaded by us, so we can safely delete the entity
debug!(
"Despawned entity {entity:?} because it's in an instance that isn't loaded anymore"