generated from AriasCreations/vsmodtemplate
parent
12d10a9a3c
commit
b00e56fdf7
2 changed files with 9 additions and 2 deletions
|
@ -29,6 +29,7 @@ namespace AriasServerUtils
|
|||
|
||||
internal static Warps serverWarps = new Warps();
|
||||
internal static Random rng = new Random((int)TimeUtil.GetUnixEpochTimestamp());
|
||||
internal bool isFirstStart = true;
|
||||
|
||||
|
||||
internal static string[] saveInvTypes = new string[] {
|
||||
|
@ -322,6 +323,12 @@ namespace AriasServerUtils
|
|||
private void OnCheckSleepingPlayers()
|
||||
{
|
||||
if (API.Side == EnumAppSide.Client) return; // This must only ever be called on the server!
|
||||
if (isFirstStart)
|
||||
{
|
||||
API.World.Calendar.RemoveTimeSpeedModifier("asu_psp");
|
||||
isFirstStart = false;
|
||||
}
|
||||
|
||||
if (Sleeping)
|
||||
{
|
||||
API.Logger.Notification($"Game Hours: {API.World.Calendar.TotalHours}, Difference: {API.World.Calendar.TotalHours - Hours}");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue