mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-11 04:17:48 +00:00
Fixed "You can only sleep at night" message (#4671)
This commit is contained in:
parent
e3614d1a82
commit
091673d8f1
@ -145,7 +145,7 @@ class Bed extends Transparent{
|
|||||||
$isNight = ($time >= World::TIME_NIGHT and $time < World::TIME_SUNRISE);
|
$isNight = ($time >= World::TIME_NIGHT and $time < World::TIME_SUNRISE);
|
||||||
|
|
||||||
if(!$isNight){
|
if(!$isNight){
|
||||||
$player->sendMessage(KnownTranslationFactory::tile_bed_tooFar()->prefix(TextFormat::GRAY));
|
$player->sendMessage(KnownTranslationFactory::tile_bed_noSleep()->prefix(TextFormat::GRAY));
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user