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

@ -57,7 +57,7 @@ abstract class Door extends Transparent{
$f = 0.1875;
$damage = $this->getFullDamage();
$bb = AxisAlignedBB::getBoundingBoxFromPool(
$bb = new AxisAlignedBB(
$this->x,
$this->y,
$this->z,
@ -271,7 +271,7 @@ abstract class Door extends Transparent{
if($player instanceof Player){
unset($players[$player->getID()]);
}
$pk = LevelEventPacket::getFromPool();
$pk = new LevelEventPacket();
$pk->x = $this->x;
$pk->y = $this->y;
$pk->z = $this->z;
@ -290,7 +290,7 @@ abstract class Door extends Transparent{
if($player instanceof Player){
unset($players[$player->getID()]);
}
$pk = LevelEventPacket::getFromPool();
$pk = new LevelEventPacket();
$pk->x = $this->x;
$pk->y = $this->y;
$pk->z = $this->z;