Player: removed checkBlockCollision() override

This commit is contained in:
Dylan K. Taylor 2018-03-30 12:23:00 +01:00
parent 4b03dbebba
commit 4ce1f228e6

View File

@ -1495,10 +1495,8 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
$this->isCollided = $this->onGround; $this->isCollided = $this->onGround;
} }
protected function checkBlockCollision(){ public function canBeMovedByCurrents() : bool{
foreach($this->getBlocksAround() as $block){ return false; //currently has no server-side movement
$block->onEntityCollide($this);
}
} }
protected function checkNearEntities(int $tickDiff){ protected function checkNearEntities(int $tickDiff){