Painting: fixed performance bug, close #2117

This commit is contained in:
Dylan K. Taylor 2018-03-25 13:06:02 +01:00
parent be7c27f60d
commit 924334a776

View File

@ -139,8 +139,8 @@ class Painting extends Entity{
$this->boundingBox->setBB(self::getPaintingBB($this->blockIn->getSide($facing), $facing, $this->getMotive())); $this->boundingBox->setBB(self::getPaintingBB($this->blockIn->getSide($facing), $facing, $this->getMotive()));
} }
protected function tryChangeMovement(){ public function hasMovementUpdate() : bool{
$this->motionX = $this->motionY = $this->motionZ = 0; return false;
} }
protected function updateMovement(bool $teleport = false){ protected function updateMovement(bool $teleport = false){