From 4b075d77242295696cf038a499c14a64845349e0 Mon Sep 17 00:00:00 2001 From: Sunch <120295462+Sunch233@users.noreply.github.com> Date: Mon, 7 Apr 2025 22:19:58 +0800 Subject: [PATCH] fixed place block in player --- 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 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 }