From 1cbd62629a3c125bf162067690b04be2fa06cd09 Mon Sep 17 00:00:00 2001 From: GameHerobrine Date: Wed, 14 May 2025 03:19:10 +0300 Subject: [PATCH] heal wont send you hurt animation packet --- src/entity/Entity.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/entity/Entity.php b/src/entity/Entity.php index 0bf3960b..925180b6 100644 --- a/src/entity/Entity.php +++ b/src/entity/Entity.php @@ -1421,7 +1421,7 @@ class Entity extends Position public function heal($health, $cause = "generic") { - return $this->setHealth(min(20, $this->getHealth() + ((int) $health)), $cause); + return $this->setHealth(min(20, $this->getHealth() + ((int) $health)), $cause, allowHarm: false); } public function stopRiding(){