mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
fixed tasklookaround
This commit is contained in:
parent
b7f9d3f1c5
commit
3d1dba6b86
14 changed files with 58 additions and 24 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue