Fixes JSON WorldConverter (#263)
- [X] Adds Map index support for JSON MapConverter - [X] Files JSON WorldConverter - [X] Removes LINQ for Map.Parse Bumps release version
This commit is contained in:
parent
13e2693b59
commit
93cf40ec81
7 changed files with 73 additions and 54 deletions
|
|
@ -104,12 +104,7 @@ namespace Server
|
|||
public int CompareTo(WorldLocation other)
|
||||
{
|
||||
var locComparison = m_Loc.CompareTo(other.m_Loc);
|
||||
if (locComparison != 0)
|
||||
{
|
||||
return locComparison;
|
||||
}
|
||||
|
||||
return Comparer<Map>.Default.Compare(m_Map, other.m_Map);
|
||||
return locComparison != 0 ? locComparison : Comparer<Map>.Default.Compare(m_Map, other.m_Map);
|
||||
}
|
||||
|
||||
public static implicit operator Point3D(WorldLocation worldLocation) => worldLocation.Location;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue