mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-20 15:41:33 +00:00
Added new Block properties (Block::isSolid, Block::isFullBlock)
This commit is contained in:
@@ -337,7 +337,7 @@ class BlockAPI{
|
||||
return $this->cancelAction($block, $player);
|
||||
}
|
||||
|
||||
if($hand->isFlowable === false and $player->entity->inBlock($block)){
|
||||
if($hand->isSolid === true and $player->entity->inBlock($block)){
|
||||
return $this->cancelAction($block, $player); //Entity in block
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user