diff --git a/ReallifeGamemode.Server.Core/Managers/HouseManager.cs b/ReallifeGamemode.Server.Core/Managers/HouseManager.cs index c1c89609..542ebfa9 100644 --- a/ReallifeGamemode.Server.Core/Managers/HouseManager.cs +++ b/ReallifeGamemode.Server.Core/Managers/HouseManager.cs @@ -403,12 +403,14 @@ namespace ReallifeGamemode.Server.Core.Managers user.HouseId = null; house.LastRentSetTime = DateTime.Now.Subtract(TimeSpan.FromDays(7)); + house.BankAccount.Balance = 0; var backMoney = (int)(house.Price * 0.4); player.SendMessage("Du bekommst vom Hausverkauf ~g~" + backMoney.ToMoneyString() + "~s~ zurück."); user.BankAccount.Balance += backMoney; + dbContext.HouseRentals.RemoveRange(house.Rentals); dbContext.SaveChanges();