fix(core): NPE in Cycles per second (#331)
- [X] Fixes an edge case where the cycle index goes negative and crashes - [X] Fixes average CPS calculation - [X] Fixes issue with logout delay - [X] Bumps release version
This commit is contained in:
parent
b71c754738
commit
75c1b32513
88 changed files with 216 additions and 188 deletions
|
|
@ -51,7 +51,7 @@ namespace Server.Factions
|
|||
}
|
||||
}
|
||||
|
||||
protected override List<SBInfo> SBInfos { get; } = new List<SBInfo>();
|
||||
protected override List<SBInfo> SBInfos { get; } = new();
|
||||
|
||||
public void Register()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1952,7 +1952,7 @@ namespace Server.Engines.MLQuests.Definitions
|
|||
|
||||
public class Ryuichi : BaseVendor
|
||||
{
|
||||
private readonly List<SBInfo> m_SBInfos = new List<SBInfo>();
|
||||
private readonly List<SBInfo> m_SBInfos = new();
|
||||
|
||||
[Constructible]
|
||||
public Ryuichi()
|
||||
|
|
@ -2200,7 +2200,7 @@ namespace Server.Engines.MLQuests.Definitions
|
|||
|
||||
public class Hamato : BaseVendor
|
||||
{
|
||||
private readonly List<SBInfo> m_SBInfos = new List<SBInfo>();
|
||||
private readonly List<SBInfo> m_SBInfos = new();
|
||||
|
||||
[Constructible]
|
||||
public Hamato()
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ namespace Server.Engines.Quests
|
|||
|
||||
public abstract class BaseQuester : BaseVendor
|
||||
{
|
||||
protected List<SBInfo> m_SBInfos = new List<SBInfo>();
|
||||
protected List<SBInfo> m_SBInfos = new();
|
||||
|
||||
public BaseQuester(string title = null) : base(title)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -205,7 +205,7 @@ namespace Server.Mobiles
|
|||
{
|
||||
public class IharaSoko : BaseVendor
|
||||
{
|
||||
protected List<SBInfo> m_SBInfos = new List<SBInfo>();
|
||||
protected List<SBInfo> m_SBInfos = new();
|
||||
|
||||
[Constructible]
|
||||
public IharaSoko() : base("the Imperial Minister of Trade")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue