From 42b9f8c93142c77615b64fd80a74e98008cf99be Mon Sep 17 00:00:00 2001 From: Patbox <39821509+Patbox@users.noreply.github.com> Date: Fri, 10 Jan 2025 20:17:50 +0100 Subject: [PATCH] Copy attributes from main entity --- .../nucleoid/disguiselib/impl/mixin/EntityMixin_Disguise.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/xyz/nucleoid/disguiselib/impl/mixin/EntityMixin_Disguise.java b/src/main/java/xyz/nucleoid/disguiselib/impl/mixin/EntityMixin_Disguise.java index 0ed93e2..c0a30ee 100644 --- a/src/main/java/xyz/nucleoid/disguiselib/impl/mixin/EntityMixin_Disguise.java +++ b/src/main/java/xyz/nucleoid/disguiselib/impl/mixin/EntityMixin_Disguise.java @@ -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()); + } } /**