bed placement wont check is player in block or not

This commit is contained in:
GameHerobrine 2024-11-28 05:04:02 +03:00
parent 0963f09ea1
commit 57f8067434

View file

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