mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-09 23:39:43 +00:00
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:
parent
90e6073202
commit
db4dac6d45
@ -1813,7 +1813,6 @@ class World implements ChunkManager, Metadatable{
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if($hand->isSolid()){
|
|
||||||
foreach($hand->getCollisionBoxes() as $collisionBox){
|
foreach($hand->getCollisionBoxes() as $collisionBox){
|
||||||
if(!empty($this->getCollidingEntities($collisionBox))){
|
if(!empty($this->getCollidingEntities($collisionBox))){
|
||||||
return false; //Entity in block
|
return false; //Entity in block
|
||||||
@ -1828,7 +1827,6 @@ class World implements ChunkManager, Metadatable{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
if($player !== null){
|
if($player !== null){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user