mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 03:59: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
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue