mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 08:17:34 +00:00
Fixed blocks being placed on beds during day
This commit is contained in:
parent
3fe3aa2a62
commit
724d336853
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user