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:
parent
8ef57aa698
commit
eb65b0ad6e
1 changed files with 2 additions and 2 deletions
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue