Issue a hotfix for a small issue that happens when no players are online.

This commit is contained in:
zontreck 2025-03-11 01:05:41 -07:00
parent 3ab3dc099f
commit 37a1c8d361
2 changed files with 2 additions and 1 deletions

View file

@ -368,6 +368,7 @@ namespace AriasServerUtils
// Iterate over all players, get their entity, check if mounted on a bed.
// If mounted on a bed, check tiredness
int TotalOnline = API.World.AllOnlinePlayers.Length;
if (TotalOnline == 0) return; // No one on, just abort the checks.
int TotalInBed = 0;
bool isAlreadySleeping = false;