Merge branch 'kotyaralih:master' into master

This commit is contained in:
yefengeeeeeeeeeee 2025-04-07 22:29:10 +08:00 • committed by GitHub
commit a8fb9e8e4b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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
}