fixed inability to place carpet inside player

This commit is contained in:
GameHerobrine 2025-03-03 22:50:31 +03:00
parent 0095061cc7
commit a032856009

View file

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