World: Remove incorrect isSolid() check for placement collision check

isSolid() != can be collided with. That's decided by the collision boxes provided, if any.
This commit is contained in:
Dylan K. Taylor 2019-05-12 16:00:38 +01:00
parent 90e6073202
commit db4dac6d45

View File

@ -1813,7 +1813,6 @@ class World implements ChunkManager, Metadatable{
return false;
}
if($hand->isSolid()){
foreach($hand->getCollisionBoxes() as $collisionBox){
if(!empty($this->getCollidingEntities($collisionBox))){
return false; //Entity in block
@ -1828,7 +1827,6 @@ class World implements ChunkManager, Metadatable{
}
}
}
}
if($player !== null){