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;

View file

@ -4,7 +4,7 @@
"name": "Aria's Server Utilities",
"authors": ["zontreck"],
"description": "A collection of server utilities\n\nBuild Date: 03-11-2025 @ 00:52 AM MST",
"version": "1.0.7",
"version": "1.0.7-1",
"dependencies": {
"game": ""
}