mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 04:17:07 +00:00
Fixed AxisAlignedBB->setBB()
This commit is contained in:
parent
1c03c3afcf
commit
05f71691fc
@ -136,14 +136,13 @@ class AxisAlignedBB{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function setBB(AxisAlignedBB $bb){
|
public function setBB(AxisAlignedBB $bb){
|
||||||
return new AxisAlignedBB(
|
$this->minX = $bb->minX;
|
||||||
min($this->minX, $bb->minX),
|
$this->minY = $bb->minY;
|
||||||
min($this->minY, $bb->minY),
|
$this->minZ = $bb->minZ;
|
||||||
min($this->minZ, $bb->minZ),
|
$this->maxX = $bb->maxX;
|
||||||
max($this->maxX, $bb->maxX),
|
$this->maxY = $bb->maxY;
|
||||||
max($this->maxY, $bb->maxY),
|
$this->maxZ = $bb->maxZ;
|
||||||
max($this->maxZ, $bb->maxZ)
|
return $this;
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getOffsetBoundingBox($x, $y, $z){
|
public function getOffsetBoundingBox($x, $y, $z){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user