fix: Removes timer error for world in initial state, and removes OPL requirement for spellbooks (#1197)
This commit is contained in:
parent
791128f238
commit
ca3b173c4c
3 changed files with 6 additions and 3 deletions
|
|
@ -33,7 +33,7 @@ public static class OutgoingContainerPackets
|
|||
return;
|
||||
}
|
||||
|
||||
if (ObjectPropertyList.Enabled && ns.NewSpellbook)
|
||||
if (ns.NewSpellbook)
|
||||
{
|
||||
ns.SendNewSpellbookContent(book, graphic, offset, content);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@ public partial class Timer
|
|||
|
||||
public Timer Start()
|
||||
{
|
||||
if (World.WorldState is WorldState.Initial or WorldState.Saving)
|
||||
if (World.WorldState is WorldState.Saving)
|
||||
{
|
||||
logger.Error(
|
||||
"Attempted to start timer {Timer} ({HashCode}) while world is {State}\n{StackTrace}",
|
||||
|
|
@ -123,7 +123,7 @@ public partial class Timer
|
|||
|
||||
public void Stop()
|
||||
{
|
||||
if (World.WorldState is WorldState.Initial or WorldState.Saving)
|
||||
if (World.WorldState is WorldState.Saving)
|
||||
{
|
||||
logger.Error(
|
||||
"Attempted to stop timer {Timer} ({HashCode}) while world is {State}\n{StackTrace}",
|
||||
|
|
|
|||
|
|
@ -1197,7 +1197,10 @@ namespace Server.Multis
|
|||
{
|
||||
LockedDownFlag = 1;
|
||||
SecureFlag = 2;
|
||||
}
|
||||
|
||||
public static void Initialize()
|
||||
{
|
||||
Timer.DelayCall(TimeSpan.FromMinutes(1.0), TimeSpan.FromMinutes(1.0), Decay_OnTick);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue