From f4b3636dfcc044bfacb9cdd8f9b301f8f05959d2 Mon Sep 17 00:00:00 2001 From: hydrant Date: Mon, 4 May 2020 17:08:27 +0200 Subject: [PATCH] fix haus jetzt richtig --- ReallifeGamemode.Server.Core/Managers/HouseManager.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/ReallifeGamemode.Server.Core/Managers/HouseManager.cs b/ReallifeGamemode.Server.Core/Managers/HouseManager.cs index 7c154b37..7e15ba0d 100644 --- a/ReallifeGamemode.Server.Core/Managers/HouseManager.cs +++ b/ReallifeGamemode.Server.Core/Managers/HouseManager.cs @@ -193,6 +193,7 @@ namespace ReallifeGamemode.Server.Core.Managers .Include(h => h.BankAccount) .Include(h => h.Rentals) .ToList() + .Where(h => h.Position.DistanceTo(position) < 5) .OrderBy(h => h.Position.DistanceTo(position)) .FirstOrDefault(); }