mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-05 09:39:56 +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(
|
$player->dataPacket(MC_CLIENT_MESSAGE, array(
|
||||||
"message" => "You can only sleep at night."
|
"message" => "You can only sleep at night."
|
||||||
));
|
));
|
||||||
return false;
|
return true;
|
||||||
}
|
}
|
||||||
$player->sleepOn($this);
|
$player->sleepOn($this);
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user