Fixes sequential checks
This commit is contained in:
parent
83dcf536d8
commit
42d0b6271f
67 changed files with 99 additions and 99 deletions
|
|
@ -103,7 +103,7 @@ namespace Server.Misc
|
|||
{
|
||||
Mobile m = e.Mobile;
|
||||
|
||||
if (m != null && m.NetState != null && m.NetState.Running)
|
||||
if (m?.NetState != null && m.NetState.Running)
|
||||
{
|
||||
m.Send(new BeginHandshake());
|
||||
|
||||
|
|
@ -122,7 +122,7 @@ namespace Server.Misc
|
|||
{
|
||||
pvSrc.Trace(state);
|
||||
|
||||
if (state == null || state.Mobile == null || !state.Running)
|
||||
if (state?.Mobile == null || !state.Running)
|
||||
return;
|
||||
|
||||
Mobile m = state.Mobile;
|
||||
|
|
|
|||
|
|
@ -113,7 +113,7 @@ namespace Server.Items
|
|||
{
|
||||
from.SendMessage( "You may not throw snow here." );
|
||||
}
|
||||
else if ( pack != null && pack.FindItemByType( new[]{ typeof( SnowPile ), typeof( PileOfGlacialSnow ) } ) != null )
|
||||
else if ( pack?.FindItemByType( new[]{ typeof( SnowPile ), typeof( PileOfGlacialSnow ) } ) != null )
|
||||
{
|
||||
if ( from.BeginAction( typeof( SnowPile ) ) )
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue