mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 12:09:43 +00:00
arrows will attack entities
This commit is contained in:
parent
d8e242d0b5
commit
1fa7697503
7 changed files with 61 additions and 20 deletions
|
|
@ -33,7 +33,9 @@ abstract class Living extends Entity implements Damageable, Pathfindable{
|
|||
unset($this->pathFollower->entity);
|
||||
unset($this->ai->entity);
|
||||
}
|
||||
|
||||
public function canBeShot(){
|
||||
return true;
|
||||
}
|
||||
public function collideHandler(){
|
||||
$this->level->applyCallbackToNearbyEntities($this, [$this, "applyCollision"], 2); //TODO radiuses
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue