Fixes unavailable syntax for Mono.

This commit is contained in:
Kamron Batman 2018-09-03 09:34:36 -07:00
parent f674ec2be0
commit 6ef32ce910
7 changed files with 99 additions and 144 deletions

View file

@ -247,13 +247,13 @@ namespace Server.Commands
if ( x is CategoryEntry entry )
a = entry.Title;
else if ( x is CategoryTypeEntry typeEntry )
a = typeEntry.Type.Name;
else if ( x is CategoryTypeEntry xTypeEntry )
a = xTypeEntry.Type.Name;
if ( y is CategoryEntry categoryEntry )
b = categoryEntry.Title;
else if ( y is CategoryTypeEntry typeEntry )
b = typeEntry.Type.Name;
else if ( y is CategoryTypeEntry yTypeEntry )
b = yTypeEntry.Type.Name;
if ( a == null && b == null )
return 0;