generated from AriasCreations/vsmodtemplate
Issue a hotfix for a small issue that happens when no players are online.
This commit is contained in:
parent
3ab3dc099f
commit
37a1c8d361
2 changed files with 2 additions and 1 deletions
|
@ -368,6 +368,7 @@ namespace AriasServerUtils
|
||||||
// Iterate over all players, get their entity, check if mounted on a bed.
|
// Iterate over all players, get their entity, check if mounted on a bed.
|
||||||
// If mounted on a bed, check tiredness
|
// If mounted on a bed, check tiredness
|
||||||
int TotalOnline = API.World.AllOnlinePlayers.Length;
|
int TotalOnline = API.World.AllOnlinePlayers.Length;
|
||||||
|
if (TotalOnline == 0) return; // No one on, just abort the checks.
|
||||||
int TotalInBed = 0;
|
int TotalInBed = 0;
|
||||||
|
|
||||||
bool isAlreadySleeping = false;
|
bool isAlreadySleeping = false;
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
"name": "Aria's Server Utilities",
|
"name": "Aria's Server Utilities",
|
||||||
"authors": ["zontreck"],
|
"authors": ["zontreck"],
|
||||||
"description": "A collection of server utilities\n\nBuild Date: 03-11-2025 @ 00:52 AM MST",
|
"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": {
|
"dependencies": {
|
||||||
"game": ""
|
"game": ""
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue