mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 08:17:34 +00:00
Fixed placing transparent blocks
This commit is contained in:
parent
475419b693
commit
3938db7c4f
@ -407,7 +407,7 @@ class BlockAPI{
|
||||
return $this->cancelAction($block); //No Entity WTF?
|
||||
}
|
||||
|
||||
if($entity->inBlock($block[2][0], $block[2][1], $block[2][2])){
|
||||
if(!isset(Material::$transparent[$block[0]) and $entity->inBlock($block[2][0], $block[2][1], $block[2][2])){
|
||||
return $this->cancelAction($block); //Entity in block
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user