mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-30 23:29:54 +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();
|
$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;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user