1
2
Fork 0
mirror of https://github.com/mat-1/azalea.git synced 2025-08-02 06:16:04 +00:00

fix respawn system ambiguity

This commit is contained in:
mat 2023-05-21 17:29:28 -05:00
parent 8ef57aa698
commit eb65b0ad6e

View file

@ -1,6 +1,6 @@
use crate::app::{App, Plugin};
use azalea_client::packet_handling::DeathEvent;
use azalea_client::respawn::PerformRespawnEvent;
use azalea_client::respawn::{perform_respawn, PerformRespawnEvent};
use bevy_ecs::prelude::*;
/// A plugin that makes [`DeathEvent`]s send [`PerformRespawnEvent`]s.
@ -8,7 +8,7 @@ use bevy_ecs::prelude::*;
pub struct AutoRespawnPlugin;
impl Plugin for AutoRespawnPlugin {
fn build(&self, app: &mut App) {
app.add_system(auto_respawn);
app.add_system(auto_respawn.before(perform_respawn));
}
}