mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
mobs will attack now, fixed division by 0(i hate php)
This commit is contained in:
parent
616c933d3d
commit
b8589c9dd4
13 changed files with 71 additions and 5 deletions
|
|
@ -175,6 +175,7 @@ class Entity extends Position
|
|||
}
|
||||
break;
|
||||
}
|
||||
$this->radius = $this->width / 2;
|
||||
$this->boundingBox = new AxisAlignedBB($this->x - $this->radius, $this->y, $this->z - $this->radius, $this->x + $this->radius, $this->y + $this->height, $this->z + $this->radius);
|
||||
$this->update();
|
||||
$this->updateLast();
|
||||
|
|
@ -1482,6 +1483,10 @@ class Entity extends Position
|
|||
}
|
||||
}
|
||||
|
||||
public function getAttackDamage(){
|
||||
return 0;
|
||||
}
|
||||
|
||||
public function setSpeed($s)
|
||||
{
|
||||
$this->speed = $s;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue