fix: Fixes house update range bug (#1790)

This commit is contained in:
Kamron Batman 2024-05-23 16:07:33 -07:00 • committed by GitHub
parent 6596046216
commit 0011db7f47
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 9 additions and 10 deletions

View file

@ -265,7 +265,7 @@ namespace Server.Engines.Harvest
Definitions = new[] { OreAndStone, Sand };
}
public static Mining System => _system ?? (_system = new Mining());
public static Mining System => _system ??= new Mining();
public HarvestDefinition OreAndStone { get; }

View file

@ -19,8 +19,7 @@ public abstract partial class QuestGiverItem : Item, IQuestGiver
public override bool Nontransferable => true;
public List<MLQuest> MLQuests => m_MLQuests ??
(m_MLQuests = MLQuestSystem.FindQuestList(GetType()) ?? MLQuestSystem.EmptyList);
public List<MLQuest> MLQuests => m_MLQuests ??= MLQuestSystem.FindQuestList(GetType()) ?? MLQuestSystem.EmptyList;
public override void AddNameProperties(IPropertyList list)
{
@ -75,8 +74,7 @@ public abstract partial class TransientQuestGiverItem : TransientItem, IQuestGiv
public override bool Nontransferable => true;
public List<MLQuest> MLQuests => m_MLQuests ??
(m_MLQuests = MLQuestSystem.FindQuestList(GetType()) ?? MLQuestSystem.EmptyList);
public List<MLQuest> MLQuests => m_MLQuests ??= MLQuestSystem.FindQuestList(GetType()) ?? MLQuestSystem.EmptyList;
public override void HandleInvalidTransfer(Mobile from)
{