From 37a1c8d3619862a254ba7b1fde79a14622e3083f Mon Sep 17 00:00:00 2001 From: zontreck Date: Tue, 11 Mar 2025 01:05:41 -0700 Subject: [PATCH] Issue a hotfix for a small issue that happens when no players are online. --- AriasServerUtils/ModSystems/ASUServer.cs | 1 + AriasServerUtils/modinfo.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/AriasServerUtils/ModSystems/ASUServer.cs b/AriasServerUtils/ModSystems/ASUServer.cs index 31b6bab..61a35d8 100644 --- a/AriasServerUtils/ModSystems/ASUServer.cs +++ b/AriasServerUtils/ModSystems/ASUServer.cs @@ -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; diff --git a/AriasServerUtils/modinfo.json b/AriasServerUtils/modinfo.json index e8035c4..0decec5 100644 --- a/AriasServerUtils/modinfo.json +++ b/AriasServerUtils/modinfo.json @@ -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": "" }