Fixes null propogation
This commit is contained in:
parent
22ab83ea9e
commit
3c9842ee5a
218 changed files with 799 additions and 1458 deletions
|
|
@ -368,8 +368,7 @@ namespace Server.Items
|
|||
|
||||
public void BeginDecay( TimeSpan delay )
|
||||
{
|
||||
if ( m_DecayTimer != null )
|
||||
m_DecayTimer.Stop();
|
||||
m_DecayTimer?.Stop();
|
||||
|
||||
m_DecayTime = DateTime.UtcNow + delay;
|
||||
|
||||
|
|
@ -379,8 +378,7 @@ namespace Server.Items
|
|||
|
||||
public override void OnAfterDelete()
|
||||
{
|
||||
if ( m_DecayTimer != null )
|
||||
m_DecayTimer.Stop();
|
||||
m_DecayTimer?.Stop();
|
||||
|
||||
m_DecayTimer = null;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,8 +19,7 @@ namespace Server.Items
|
|||
|
||||
public void BeginDecay( TimeSpan delay )
|
||||
{
|
||||
if ( m_DecayTimer != null )
|
||||
m_DecayTimer.Stop();
|
||||
m_DecayTimer?.Stop();
|
||||
|
||||
m_DecayTime = DateTime.UtcNow + delay;
|
||||
|
||||
|
|
@ -30,8 +29,7 @@ namespace Server.Items
|
|||
|
||||
public override void OnAfterDelete()
|
||||
{
|
||||
if ( m_DecayTimer != null )
|
||||
m_DecayTimer.Stop();
|
||||
m_DecayTimer?.Stop();
|
||||
|
||||
m_DecayTimer = null;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -62,8 +62,7 @@ namespace Server.Items
|
|||
|
||||
if ( !Active )
|
||||
{
|
||||
if ( boat.TillerMan != null )
|
||||
boat.TillerMan.Say( 502507 ); // Ar, Legend has it that these pillars are inactive! No man knows how it might be undone!
|
||||
boat.TillerMan?.Say( 502507 ); // Ar, Legend has it that these pillars are inactive! No man knows how it might be undone!
|
||||
|
||||
return;
|
||||
}
|
||||
|
|
@ -90,8 +89,7 @@ namespace Server.Items
|
|||
}
|
||||
}
|
||||
|
||||
if ( boat.TillerMan != null )
|
||||
boat.TillerMan.Say( 502508 ); // Ar, I refuse to take that matey through here!
|
||||
boat.TillerMan?.Say( 502508 ); // Ar, I refuse to take that matey through here!
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -862,8 +862,7 @@ namespace Server.Items
|
|||
|
||||
public override bool OnMoveOver(Mobile m)
|
||||
{
|
||||
if (m_Teleporter != null)
|
||||
m_Teleporter.StopTimer(m);
|
||||
m_Teleporter?.StopTimer(m);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue