Changes properties to use automatic property initializers

This commit is contained in:
Kamron Batman 2018-09-14 15:23:29 -07:00
parent f0a48ad431
commit 06fa31a7bf
623 changed files with 13072 additions and 19304 deletions

View file

@ -27,13 +27,7 @@ namespace Server
{
private int m_LandBlocks, m_StaticBlocks;
private static bool m_Enabled = true;
public static bool Enabled
{
get => m_Enabled;
set => m_Enabled = value;
}
public static bool Enabled { get; set; } = true;
public int LandBlocks
{
@ -55,7 +49,7 @@ namespace Server
public TileMatrixPatch( TileMatrix matrix, int index )
{
if ( !m_Enabled )
if ( !Enabled )
return;
string mapDataPath = Core.FindDataFile( "mapdif{0}.mul", index );