fixed tasklookaround

This commit is contained in:
GameHerobrine 2024-01-12 05:54:19 +03:00
parent b7f9d3f1c5
commit 3d1dba6b86
14 changed files with 58 additions and 24 deletions

View file

@ -188,7 +188,16 @@ class AxisAlignedBB{
public function intersectsWith(AxisAlignedBB $bb){
return $bb->maxX > $this->minX and $bb->minX < $this->maxX && $bb->maxZ > $this->minZ and $bb->minZ < $this->maxZ && $bb->maxY > $this->minY and $bb->minY < $this->maxY;
}
public function isXYZInsideNS($x, $y, $z){
if($x < $this->minX or $x > $this->maxX){
return false;
}
if($y < $this->minY or $y > $this->maxY){
return false;
}
return $z > $this->minZ and $z < $this->maxZ;
}
public function isXYZInside($x, $y, $z){
if($x <= $this->minX or $x >= $this->maxX){
return false;