mirror of
https://github.com/mat-1/azalea.git
synced 2025-08-02 14:26:04 +00:00
dead entities cannot be revived
This commit is contained in:
parent
31d0ac7568
commit
e03101a7b7
1 changed files with 1 additions and 3 deletions
|
@ -78,9 +78,7 @@ fn debug_new_entity(query: Query<(Entity, Option<&LocalEntity>), Added<Minecraft
|
|||
/// to 0 (or less than 0). This will be present if an entity is doing the death
|
||||
/// animation.
|
||||
///
|
||||
/// Entities that are dead can not be revived.
|
||||
/// TODO: fact check this in-game by setting an entity's health to 0 and then
|
||||
/// not 0
|
||||
/// Entities that are dead cannot be revived.
|
||||
pub fn add_dead(mut commands: Commands, query: Query<(Entity, &Health), Changed<Health>>) {
|
||||
for (entity, health) in query.iter() {
|
||||
if **health <= 0.0 {
|
||||
|
|
Loading…
Add table
Reference in a new issue