ai tweaks, pitch and yaw should be always updated(not only when pos changed)

This commit is contained in:
GameHerobrine 2022-12-23 07:38:42 +03:00
parent 8b036abf8e
commit be9a9c0c0d
8 changed files with 17 additions and 34 deletions

View file

@ -9,7 +9,7 @@ abstract class Creature extends Living{
public $inPanic;
public function __construct(Level $level, $eid, $class, $type = 0, $data = []){
$this->inPanic = false; //force for now
$this->inPanic = false; //force for now
parent::__construct($level, $eid, $class, $type, $data);
$this->setHealth(isset($this->data["Health"]) ? $this->data["Health"] : 1, "generic");
//$this->setName((isset($mobs[$this->type]) ? $mobs[$this->type]:$this->type));