Fixed players getting Suffocation damage inside transparent blocks

This commit is contained in:
Shoghi Cervantes 2014-09-23 19:50:44 +02:00
parent 9907e84eee
commit 6b312a7826

View File

@ -755,7 +755,7 @@ abstract class Entity extends Position implements Metadatable{
$bb = $block->getBoundingBox();
if($bb !== null and $block->isSolid and $bb->intersectsWith($this->getBoundingBox())){
if($bb !== null and $block->isSolid and !$block->isTransparent and $bb->intersectsWith($this->getBoundingBox())){
return true;
}
}