Fixed physics BoundingBox

This commit is contained in:
Shoghi Cervantes 2014-07-06 12:59:41 +02:00
parent 6b361389ad
commit 25ecdcf6e2

View File

@ -779,10 +779,10 @@ abstract class Entity extends Position implements Metadatable{
$this->motionZ = 0;
}
//$this->boundingBox->addCoord($dx, $dy, $dz);
//$this->x += $dx;
//$this->y += $dy;
//$this->z += $dz;
$this->boundingBox->addCoord($dx, $dy, $dz);
$this->x += $dx;
$this->y += $dy;
$this->z += $dz;
$cx = $this->x - $ox;
$cy = $this->y - $oy;