mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 20:19:44 +00:00
Adds beds
This commit is contained in:
parent
f7508adb29
commit
1677ce4b1d
4 changed files with 59 additions and 13 deletions
|
|
@ -27,9 +27,10 @@ class BedBlock extends TransparentBlock{
|
|||
}
|
||||
|
||||
public function onActivate(Item $item, Player $player){
|
||||
$player->dataPacket(MC_CLIENT_MESSAGE, array(
|
||||
$player->sleepOn($this);
|
||||
/*$player->dataPacket(MC_CLIENT_MESSAGE, array(
|
||||
"message" => "This bed has been corrupted by your hands!"
|
||||
));
|
||||
));*/
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue