ported 1.5.2 way of mob movement but broke everything else

This commit is contained in:
GameHerobrine 2024-01-09 06:44:19 +03:00
parent 8684e3092a
commit 5161d087ba
5 changed files with 169 additions and 93 deletions

View file

@ -65,8 +65,8 @@ class MobController
);
}
while(self::$ADVANCED){
if($this->isDangerous($a) || $this->isDangerous($b) || $this->isDangerous($c) || $this->isDangerous($d)){
while(self::$ADVANCED){
if($this->isDangerous($a) || $this->isDangerous($b) || $this->isDangerous($c) || $this->isDangerous($d)){
return false;
}
$id1 = $this->entity->level->level->getBlockID($xf, $this->entity->y + $oy - 1, $zf);