diff --git a/src/API/BlockAPI.php b/src/API/BlockAPI.php index f286f129..42a067ce 100755 --- a/src/API/BlockAPI.php +++ b/src/API/BlockAPI.php @@ -502,7 +502,7 @@ class BlockAPI{ //$face = -1; } - if($hand->isSolid === true and $player->entity->inBlock($block) && ($hand->getID() != BED_BLOCK && $hand->getID() != CARPET)){ + if($hand->isSolid === true and $block->boundingBox->intersectsWith($player->entity->boundingBox) && ($hand->getID() != BED_BLOCK && $hand->getID() != CARPET)){ return $this->cancelAction($block, $player, false); //Entity in block }