Skip to content

Commit

Permalink
dead entities cannot be revived
Browse files Browse the repository at this point in the history
  • Loading branch information
mat-1 committed Jan 11, 2025
1 parent 31d0ac7 commit e03101a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions azalea-entity/src/plugin/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit e03101a

Please sign in to comment.