mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 20:19:44 +00:00
Fixed #288 [gh#288]
This commit is contained in:
parent
a153f2ebdc
commit
7ade4762b9
3 changed files with 9 additions and 2 deletions
|
|
@ -31,6 +31,13 @@ class BedBlock extends TransparentBlock{
|
|||
$this->isActivable = true;
|
||||
}
|
||||
|
||||
public function onActivate(Item $item, Player $player){
|
||||
$player->dataPacket(MC_CLIENT_MESSAGE, array(
|
||||
"message" => "This bed has been corrupted by your hands!"
|
||||
));
|
||||
return true;
|
||||
}
|
||||
|
||||
public function place(Item $item, Player $player, Block $block, Block $target, $face, $fx, $fy, $fz){
|
||||
$down = $this->getSide(0);
|
||||
if($down->isTransparent === false){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue