Level: remove dead block placement code (player movements are now always processed immediately, just not immediately broadcasted)

This commit is contained in:
Dylan K. Taylor 2020-05-31 16:06:48 +01:00
parent 485f573955
commit 484557935e

View File

@ -1897,15 +1897,6 @@ class Level implements ChunkManager, Metadatable{
if(count($this->getCollidingEntities($collisionBox)) > 0){
return false; //Entity in block
}
if($player !== null){
if(($diff = $player->getNextPosition()->subtract($player->getPosition())) and $diff->lengthSquared() > 0.00001){
$bb = $player->getBoundingBox()->offsetCopy($diff->x, $diff->y, $diff->z);
if($collisionBox->intersectsWith($bb)){
return false; //Inside player BB
}
}
}
}
}