mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-05-13 12:43:51 +00:00
playsound, sleep ignoring
This commit is contained in:
parent
a5e39efa04
commit
a0be612f48
7 changed files with 294 additions and 9 deletions
|
|
@ -324,6 +324,8 @@ void ServerLevel::updateSleepingPlayerList()
|
|||
|
||||
for (auto& player : players)
|
||||
{
|
||||
if (player->fk_sleepingIgnored)
|
||||
continue;
|
||||
if (!player->isSleeping())
|
||||
{
|
||||
allPlayersSleeping = false;
|
||||
|
|
@ -368,6 +370,8 @@ bool ServerLevel::allPlayersAreSleeping()
|
|||
// all players are sleeping, but have they slept long enough?
|
||||
for (auto& player : players)
|
||||
{
|
||||
if (player->fk_sleepingIgnored)
|
||||
continue;
|
||||
// System.out.println(player->entityId + ": " + player->getSleepTimer());
|
||||
if (!player->isSleepingLongEnough())
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue