Fixed CPU leak

This commit is contained in:
Shoghi Cervantes
2014-10-31 21:05:37 +01:00
parent ae06681b60
commit 8601405a88
73 changed files with 304 additions and 564 deletions

View File

@ -48,7 +48,7 @@ class Ladder extends Transparent{
$f = 0.125;
if($this->meta === 2){
return AxisAlignedBB::getBoundingBoxFromPool(
return new AxisAlignedBB(
$this->x,
$this->y,
$this->z + 1 - $f,
@ -57,7 +57,7 @@ class Ladder extends Transparent{
$this->z + 1
);
}elseif($this->meta === 3){
return AxisAlignedBB::getBoundingBoxFromPool(
return new AxisAlignedBB(
$this->x,
$this->y,
$this->z,
@ -66,7 +66,7 @@ class Ladder extends Transparent{
$this->z + $f
);
}elseif($this->meta === 4){
return AxisAlignedBB::getBoundingBoxFromPool(
return new AxisAlignedBB(
$this->x + 1 - $f,
$this->y,
$this->z,
@ -75,7 +75,7 @@ class Ladder extends Transparent{
$this->z + 1
);
}elseif($this->meta === 5){
return AxisAlignedBB::getBoundingBoxFromPool(
return new AxisAlignedBB(
$this->x,
$this->y,
$this->z,