arrows will attack entities

This commit is contained in:
GameHerobrine 2023-07-05 11:44:26 +03:00
parent d8e242d0b5
commit 1fa7697503
7 changed files with 61 additions and 20 deletions

View file

@ -777,6 +777,10 @@ class Entity extends Position
}
}
public function canBeShot(){
return $this->isPlayer();
}
public function updateFallState($fallTick){
if($this->onGround && $this->fallDistance > 0){
$this->fall();