no kb if entity is dead + Utils::getUniqueID change

This commit is contained in:
kotyara 2023-02-26 16:47:40 +05:00
parent b1025aa4a3
commit a3711cfded
2 changed files with 19 additions and 4 deletions

View file

@ -1434,6 +1434,9 @@ class Entity extends Position
public function knockBack($d, $d1)
{
if($this->closed || $this->dead){
return false;
}
$f = sqrt($d * $d + $d1 * $d1);
$f1 = 0.4;
$this->speedX /= 2;