mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 20:19:44 +00:00
entity fixes
This commit is contained in:
parent
834bb3d486
commit
394ede50e9
4 changed files with 35 additions and 90 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue