micro entity optimizations, fixed getEyeHeight, rewrote inWall, static hitboxes

This commit is contained in:
GameHerobrine 2024-02-16 06:36:21 +03:00
parent 0469550ca2
commit 2927fe1094
9 changed files with 54 additions and 94 deletions

View file

@ -3,7 +3,7 @@
class Cow extends Animal{
const TYPE = MOB_COW;
function __construct(Level $level, $eid, $class, $type = 0, $data = []){
$this->setSize($this->isBaby() ? 0.45 : 0.9 , $this->isBaby() ? 0.7 : 1.4);
$this->setSize(0.9, 1.3);
parent::__construct($level, $eid, $class, $type, $data);
$this->setHealth(isset($this->data["Health"]) ? $this->data["Health"] : 10, "generic");
$this->setName("Cow");