More cast conversion fixes
This commit is contained in:
parent
3f45bd57b9
commit
aba9452161
46 changed files with 359 additions and 506 deletions
|
|
@ -74,8 +74,8 @@ namespace Server.Items
|
|||
|
||||
ILoom loom = targeted as ILoom;
|
||||
|
||||
if ( loom == null && targeted is AddonComponent )
|
||||
loom = ((AddonComponent)targeted).Addon as ILoom;
|
||||
if ( loom == null && targeted is AddonComponent component )
|
||||
loom = component.Addon as ILoom;
|
||||
|
||||
if ( loom != null )
|
||||
{
|
||||
|
|
@ -87,8 +87,8 @@ namespace Server.Items
|
|||
{
|
||||
m_Material.Consume();
|
||||
|
||||
if ( targeted is Item )
|
||||
((Item)targeted).SendLocalizedMessageTo( from, 1010001 + loom.Phase++ );
|
||||
if ( targeted is Item item )
|
||||
item.SendLocalizedMessageTo( from, 1010001 + loom.Phase++ );
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -232,4 +232,4 @@ namespace Server.Items
|
|||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue