mirror of
https://github.com/mat-1/azalea.git
synced 2025-08-02 06:16:04 +00:00
add fallback for adding LocalEntity so tests don't fail
This commit is contained in:
parent
b9767424f3
commit
172e0ce079
1 changed files with 7 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
|||
mod events;
|
||||
|
||||
use azalea_entity::LocalEntity;
|
||||
use azalea_protocol::packets::ConnectionProtocol;
|
||||
use azalea_protocol::packets::config::*;
|
||||
use bevy_ecs::prelude::*;
|
||||
|
@ -108,7 +109,12 @@ impl ConfigPacketHandler<'_> {
|
|||
commands
|
||||
.entity(self.player)
|
||||
.remove::<InConfigState>()
|
||||
.insert(crate::JoinedClientBundle::default());
|
||||
.insert((
|
||||
crate::JoinedClientBundle::default(),
|
||||
// localentity should already be added, but in case the user forgot or
|
||||
// something we also add it here
|
||||
LocalEntity,
|
||||
));
|
||||
},
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue