From a032856009182b236ed24e583fb65c9c10ea82d3 Mon Sep 17 00:00:00 2001 From: GameHerobrine Date: Mon, 3 Mar 2025 22:50:31 +0300 Subject: [PATCH] fixed inability to place carpet inside player --- src/API/BlockAPI.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +}