mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
no kb if entity is dead + Utils::getUniqueID change
This commit is contained in:
parent
b1025aa4a3
commit
a3711cfded
2 changed files with 19 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue