Skip to content

Commit

Permalink
Copy attributes from main entity
Browse files Browse the repository at this point in the history
  • Loading branch information
Patbox committed Jan 10, 2025
1 parent c03f521 commit 42b9f8c
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,10 @@ public void updateTrackedData() {
this.disguiselib$disguiseEntity.setOnFire(this.isOnFire());
this.disguiselib$disguiseEntity.setSilent(this.isSilent());
this.disguiselib$disguiseEntity.setPose(this.getPose());
//noinspection ConstantValue
if (this.disguiselib$disguiseEntity instanceof LivingEntity disguise && ((Object) this) instanceof LivingEntity self) {
disguise.getAttributes().setFrom(self.getAttributes());
}
}

/**
Expand Down

0 comments on commit 42b9f8c

Please sign in to comment.