mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
bed placement wont check is player in block or not
This commit is contained in:
parent
0963f09ea1
commit
57f8067434
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue