Fix NamesMode not being loaded.

This commit is contained in:
UnknownShadow200 2016-02-07 09:16:07 +11:00
parent ab2e95d201
commit 20205a42fb
3 changed files with 5 additions and 5 deletions

View File

@ -49,9 +49,9 @@ namespace ClassicalSharp {
Graphics = new Direct3D9Api( this );
#endif
Graphics.MakeGraphicsInfo();
Players = new EntityList( this );
Options.Load();
Players = new EntityList( this );
AcceptedUrls.Load(); DeniedUrls.Load();
ViewDistance = Options.GetInt( OptionsKey.ViewDist, 16, 4096, 512 );
UserViewDistance = ViewDistance;

View File

@ -107,7 +107,7 @@ namespace ClassicalSharp {
}
public static T GetEnum<T>( string key, T defValue ) {
string value = Options.Get( key.ToLower() );
string value = Get( key.ToLower() );
if( value == null ) {
Set( key, defValue );
return defValue;
@ -115,7 +115,7 @@ namespace ClassicalSharp {
T mapping;
if( !Utils.TryParseEnum( value, defValue, out mapping ) )
Options.Set( key, defValue );
Set( key, defValue );
return mapping;
}