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

@ -1,12 +1,4 @@
<?php
class Monster extends Creature{
public function environmentUpdate(){
$upd = parent::environmentUpdate();
if($this->server->api->getProperty("spawn-mobs") !== true){
$this->close();
return false;
}
return $upd;
}
}
}