String patch, thanks Carmina
This commit is contained in:
parent
332effd18f
commit
88658b58e2
15 changed files with 33 additions and 33 deletions
|
|
@ -56,7 +56,7 @@ namespace Server.Engines.Chat
|
|||
{
|
||||
newValue = value.Trim();
|
||||
|
||||
if ( newValue == null || newValue == String.Empty )
|
||||
if ( String.IsNullOrEmpty( newValue ) )
|
||||
newValue = null;
|
||||
}
|
||||
|
||||
|
|
@ -545,4 +545,4 @@ namespace Server.Engines.Chat
|
|||
AddChannel( name ).AlwaysAvailable = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -656,7 +656,7 @@ namespace Server.Engines.Craft
|
|||
|
||||
if ( res.MessageNumber > 0 )
|
||||
message = res.MessageNumber;
|
||||
else if ( res.MessageString != null && res.MessageString != String.Empty )
|
||||
else if ( !String.IsNullOrEmpty( res.MessageString ) )
|
||||
message = res.MessageString;
|
||||
else
|
||||
message = 502925; // You don't have the resources required to make that item.
|
||||
|
|
@ -1306,4 +1306,4 @@ namespace Server.Engines.Craft
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ namespace Server.Engines.Craft
|
|||
{
|
||||
if ( m_MessageNumber > 0 )
|
||||
from.SendLocalizedMessage( m_MessageNumber );
|
||||
else if ( m_MessageString != null && m_MessageString != String.Empty )
|
||||
else if ( !String.IsNullOrEmpty( m_MessageString ) )
|
||||
from.SendMessage( m_MessageString );
|
||||
else
|
||||
from.SendLocalizedMessage( 502925 ); // You don't have the resources required to make that item.
|
||||
|
|
@ -68,4 +68,4 @@ namespace Server.Engines.Craft
|
|||
get { return m_Amount; }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -138,7 +138,7 @@ namespace Server.Engines.VeteranRewards
|
|||
|
||||
string tag = acct.GetTag( "numRewardsChosen" );
|
||||
|
||||
if ( tag == null || tag == "" )
|
||||
if ( String.IsNullOrEmpty( tag ) )
|
||||
cur = 0;
|
||||
else
|
||||
cur = Utility.ToInt32( tag );
|
||||
|
|
@ -364,4 +364,4 @@ namespace Server.Engines.VeteranRewards
|
|||
{
|
||||
bool IsRewardItem{ get; set; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue