fix house

This commit is contained in:
hydrant
2020-05-04 16:52:48 +02:00
parent 10129fde42
commit 6a27b6660a

View File

@@ -188,7 +188,7 @@ namespace ReallifeGamemode.Server.Core.Managers
public House GetNearHouse(Position position, DatabaseContext dbContext) public House GetNearHouse(Position position, DatabaseContext dbContext)
{ {
return dbContext.Houses.Where(h => h.Position.DistanceTo(position) <= 5f) return dbContext.Houses
.Include(h => h.Owner) .Include(h => h.Owner)
.Include(h => h.BankAccount) .Include(h => h.BankAccount)
.Include(h => h.Rentals) .Include(h => h.Rentals)