From 9c23ef17186f7b6a24ea467d3a77537c368450e7 Mon Sep 17 00:00:00 2001 From: hydrant Date: Mon, 30 Mar 2020 23:04:55 +0200 Subject: [PATCH] fix haus --- ReallifeGamemode.Server.Core/Commands/Admin/HouseCommand.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ReallifeGamemode.Server.Core/Commands/Admin/HouseCommand.cs b/ReallifeGamemode.Server.Core/Commands/Admin/HouseCommand.cs index 4b4bb265..0fea7c1c 100644 --- a/ReallifeGamemode.Server.Core/Commands/Admin/HouseCommand.cs +++ b/ReallifeGamemode.Server.Core/Commands/Admin/HouseCommand.cs @@ -46,11 +46,10 @@ namespace ReallifeGamemode.Server.Core.Commands.Admin }; dbContext.Houses.Add(house); + dbContext.SaveChanges(); houseManager.LoadHouse(house); - dbContext.SaveChanges(); - player.SendNotification("Das Haus wurde erstellt"); return;