entity fixes

This commit is contained in:
GameHerobrine 2022-11-10 13:27:22 +03:00
parent 834bb3d486
commit 394ede50e9
4 changed files with 35 additions and 90 deletions

View file

@ -11,6 +11,8 @@ abstract class Living extends Entity implements Damageable{
$this->pathNavigator = new PathNavigator($this);
parent::__construct($level, $eid, $class, $type, $data);
$this->canBeAttacked = true;
$this->hasGravity = true;
$this->hasKnockback = true;
}
public function update(){
@ -19,4 +21,4 @@ abstract class Living extends Entity implements Damageable{
parent::update();
}
}
}