Fixed blocks being placed on beds during day

This commit is contained in:
Shoghi Cervantes 2013-09-04 10:30:48 +02:00
parent 3fe3aa2a62
commit 724d336853

View File

@ -31,7 +31,7 @@ class BedBlock extends TransparentBlock{
$player->dataPacket(MC_CLIENT_MESSAGE, array(
"message" => "You can only sleep at night."
));
return false;
return true;
}
$player->sleepOn($this);
return true;