More cast conversion fixes

This commit is contained in:
Kamron Batman 2018-09-06 18:07:42 -07:00
parent 3f45bd57b9
commit aba9452161
46 changed files with 359 additions and 506 deletions

View file

@ -114,16 +114,14 @@ namespace Server.Items
}
}
public virtual bool RequireDeepWater{ get{ return true; } }
public virtual bool RequireDeepWater => true;
public void OnTarget( Mobile from, object obj )
{
if ( Deleted || m_InUse )
return;
IPoint3D p3D = obj as IPoint3D;
if ( p3D == null )
if ( !(obj is IPoint3D p3D) )
return;
Map map = from.Map;