diff --git a/src/API/BlockAPI.php b/src/API/BlockAPI.php index d7a9d8fe..f286f129 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){ + if($hand->isSolid === true and $player->entity->inBlock($block) && ($hand->getID() != BED_BLOCK && $hand->getID() != CARPET)){ return $this->cancelAction($block, $player, false); //Entity in block } @@ -639,4 +639,4 @@ class BlockAPI{ } } } -} \ No newline at end of file +}