From 6a27b6660aa3610c5ed9ba756efacd69c661efeb Mon Sep 17 00:00:00 2001 From: hydrant Date: Mon, 4 May 2020 16:52:48 +0200 Subject: [PATCH 1/2] fix house --- ReallifeGamemode.Server.Core/Managers/HouseManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ReallifeGamemode.Server.Core/Managers/HouseManager.cs b/ReallifeGamemode.Server.Core/Managers/HouseManager.cs index 182e16fb..7c154b37 100644 --- a/ReallifeGamemode.Server.Core/Managers/HouseManager.cs +++ b/ReallifeGamemode.Server.Core/Managers/HouseManager.cs @@ -188,7 +188,7 @@ namespace ReallifeGamemode.Server.Core.Managers 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.BankAccount) .Include(h => h.Rentals) From 3f6935f3834d4991c96f6224300bcc0ab61e6407 Mon Sep 17 00:00:00 2001 From: hydrant Date: Mon, 4 May 2020 17:00:37 +0200 Subject: [PATCH 2/2] tuning blip kleiner --- ReallifeGamemode.Server/Managers/TuningManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ReallifeGamemode.Server/Managers/TuningManager.cs b/ReallifeGamemode.Server/Managers/TuningManager.cs index d8f8268e..4076cbc1 100644 --- a/ReallifeGamemode.Server/Managers/TuningManager.cs +++ b/ReallifeGamemode.Server/Managers/TuningManager.cs @@ -27,7 +27,7 @@ namespace ReallifeGamemode.Server.Managers /// Die Position der Garage public static void AddTuningGarage(Vector3 pos) { - NAPI.Blip.CreateBlip(446, pos, 1f, 4, "Los Santos Customs", shortRange: true); + NAPI.Blip.CreateBlip(446, pos, 0.7f, 4, "Los Santos Customs", shortRange: true); ColShape colShape = NAPI.ColShape.CreateSphereColShape(pos, 5, 0);