playsound, sleep ignoring
This commit is contained in:
@@ -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())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user