Entity: fix chunk tracking consistency issues, fixed attempted chunk loading in origin world when teleporting to a different position in a different world

This commit is contained in:
Dylan K. Taylor
2020-12-10 18:13:18 +00:00
parent 5282ae3298
commit e925423749
4 changed files with 25 additions and 43 deletions

View File

@ -261,7 +261,7 @@ abstract class Projectile extends Entity{
$this->location->pitch = (atan2($this->motion->y, $f) * 180 / M_PI);
}
$this->checkChunks();
$this->getWorld()->onEntityMoved($this);
$this->checkBlockCollision();
Timings::$entityMoveTimer->stopTiming();