mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 20:49:43 +00:00
fixed inability to place carpet inside player
This commit is contained in:
parent
0095061cc7
commit
a032856009
1 changed files with 2 additions and 2 deletions
|
|
@ -502,7 +502,7 @@ class BlockAPI{
|
||||||
//$face = -1;
|
//$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
|
return $this->cancelAction($block, $player, false); //Entity in block
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -639,4 +639,4 @@ class BlockAPI{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue