From 4e5c551d650ad3233f9653aaad07b216191ec5b2 Mon Sep 17 00:00:00 2001 From: mat Date: Fri, 28 Mar 2025 00:54:17 +0000 Subject: fix entity deindexing happening at the wrong time --- azalea-entity/src/plugin/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'azalea-entity/src/plugin/mod.rs') diff --git a/azalea-entity/src/plugin/mod.rs b/azalea-entity/src/plugin/mod.rs index b6ae369f..115b25e4 100644 --- a/azalea-entity/src/plugin/mod.rs +++ b/azalea-entity/src/plugin/mod.rs @@ -9,7 +9,7 @@ use azalea_core::{ tick::GameTick, }; use azalea_world::{InstanceContainer, InstanceName, MinecraftEntityId}; -use bevy_app::{App, Plugin, PreUpdate, Update}; +use bevy_app::{App, Plugin, PostUpdate, Update}; use bevy_ecs::prelude::*; use derive_more::{Deref, DerefMut}; use indexing::EntityUuidIndex; @@ -39,7 +39,7 @@ impl Plugin for EntityPlugin { // modified during update // despawned post-update (done by this plugin) app.add_systems( - PreUpdate, + PostUpdate, indexing::remove_despawned_entities_from_indexes.in_set(EntityUpdateSet::Deindex), ) .add_systems( -- cgit v1.2.3