Fixing coord bug
This commit is contained in:
@@ -85,7 +85,7 @@ public class CharacterStore
|
||||
|
||||
var update = Builders<VisibleLocation>.Update
|
||||
.SetOnInsert(l => l.Name, DefaultLocationName(x, y))
|
||||
.SetOnInsert(l => l.Coord, new Coord { X = x, Y = y })
|
||||
.SetOnInsert(l => l.Coord, new LocationCoord { X = x, Y = y })
|
||||
.SetOnInsert(l => l.Id, ObjectId.GenerateNewId().ToString())
|
||||
.SetOnInsert("createdUtc", DateTime.UtcNow);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user