From 57f8067434111b0901888411a038bfe377ff2ca4 Mon Sep 17 00:00:00 2001 From: GameHerobrine Date: Thu, 28 Nov 2024 05:04:02 +0300 Subject: [PATCH] bed placement wont check is player in block or not --- src/API/BlockAPI.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/API/BlockAPI.php b/src/API/BlockAPI.php index d8fb334c..613424c4 100755 --- a/src/API/BlockAPI.php +++ b/src/API/BlockAPI.php @@ -503,7 +503,7 @@ class BlockAPI{ //$face = -1; } - if($hand->isSolid === true and $player->entity->inBlock($block)){ + if($hand->isSolid === true and $player->entity->inBlock($block) && $hand->getID() != BED_BLOCK){ return $this->cancelAction($block, $player, false); //Entity in block }