Fixed collision blocks not being recalculated after teleporting, close #1531

This commit is contained in:
Dylan K. Taylor 2017-11-09 15:11:42 +00:00
parent 6fe45a69c8
commit d4494687d1

View File

@ -1709,6 +1709,8 @@ abstract class Entity extends Location implements Metadatable, EntityIds{
$radius = $this->width / 2;
$this->boundingBox->setBounds($pos->x - $radius, $pos->y, $pos->z - $radius, $pos->x + $radius, $pos->y + $this->height, $pos->z + $radius);
$this->blocksAround = null;
$this->checkChunks();
return true;