Adds more formatting
This commit is contained in:
parent
e77d695684
commit
f674ec2be0
68 changed files with 530 additions and 876 deletions
|
|
@ -60,9 +60,7 @@ namespace Server.Items
|
|||
m_Timer = null;
|
||||
}
|
||||
|
||||
Mobile from = state as Mobile;
|
||||
|
||||
if ( from != null && !from.Deleted && !this.Deleted && IsFull )
|
||||
if ( state is Mobile from && !from.Deleted && !this.Deleted && IsFull )
|
||||
{
|
||||
SackFlour flour = new SackFlour();
|
||||
|
||||
|
|
@ -123,9 +121,7 @@ namespace Server.Items
|
|||
|
||||
for ( int i = 0; i < components.Count; ++i )
|
||||
{
|
||||
AddonComponent component = components[i] as AddonComponent;
|
||||
|
||||
if ( component == null )
|
||||
if ( !(components[i] is AddonComponent component) )
|
||||
continue;
|
||||
|
||||
int[] itemTable = FindItemTable( component.ItemID );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue