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.
|
||||
// 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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue