From b2fe5e73aa1662b1d7aa96a3d10718b3643d81bf Mon Sep 17 00:00:00 2001 From: balbo Date: Tue, 4 Aug 2020 15:49:06 +0200 Subject: [PATCH] maybe inventar clear wenn vehicle goes boom --- ReallifeGamemode.Server/Job/PilotJob.cs | 1 - ReallifeGamemode.Server/Managers/VehicleManager.cs | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ReallifeGamemode.Server/Job/PilotJob.cs b/ReallifeGamemode.Server/Job/PilotJob.cs index 5fbd1f5f..8c4d33ad 100644 --- a/ReallifeGamemode.Server/Job/PilotJob.cs +++ b/ReallifeGamemode.Server/Job/PilotJob.cs @@ -7,7 +7,6 @@ using ReallifeGamemode.Database.Models; using ReallifeGamemode.Server.Services; using ReallifeGamemode.Server.Managers; using ReallifeGamemode.Server.Util; -using System.ComponentModel; namespace ReallifeGamemode.Server.Job { diff --git a/ReallifeGamemode.Server/Managers/VehicleManager.cs b/ReallifeGamemode.Server/Managers/VehicleManager.cs index 9b7a4972..f8339d24 100644 --- a/ReallifeGamemode.Server/Managers/VehicleManager.cs +++ b/ReallifeGamemode.Server/Managers/VehicleManager.cs @@ -3,7 +3,6 @@ using Newtonsoft.Json; using ReallifeGamemode.Database.Entities; using ReallifeGamemode.Database.Models; using ReallifeGamemode.Server.Extensions; -using ReallifeGamemode.Server.Services; using ReallifeGamemode.Server.Util; using System; using System.Collections.Generic; @@ -888,6 +887,8 @@ namespace ReallifeGamemode.Server.Managers vehicle.Delete(); return; } + InventoryManager.RemoveAllItemsfromVehicleInventory(vehicle); + NAPI.Util.ConsoleOutput("VehicleDeath: Debug 3"); Vehicle newVeh = serverVehicle.Spawn(vehicle); newVeh.Repair();