Entity: Protect move() to avoid stupidity

This commit is contained in:
Dylan K. Taylor 2019-01-14 19:57:46 +00:00
parent ff5cb84b81
commit 797aabdf15

View File

@ -1345,7 +1345,7 @@ abstract class Entity extends Location implements Metadatable, EntityIds{
return $block->isSolid() and !$block->isTransparent() and $block->collidesWithBB($this->getBoundingBox());
}
public function move(float $dx, float $dy, float $dz) : void{
protected function move(float $dx, float $dy, float $dz) : void{
$this->blocksAround = null;
Timings::$entityMoveTimer->startTiming();