heal wont send you hurt animation packet

This commit is contained in:
GameHerobrine 2025-05-14 03:19:10 +03:00
parent 87d2fbf884
commit 1cbd62629a

View file

@ -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(){