mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 00:07:30 +00:00
Fixed players getting Suffocation damage inside transparent blocks
This commit is contained in:
parent
9907e84eee
commit
6b312a7826
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user