maybe inventar clear wenn vehicle goes boom

This commit is contained in:
2020-08-04 15:49:06 +02:00
parent 158d075c5d
commit b2fe5e73aa
2 changed files with 2 additions and 2 deletions

View File

@@ -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
{

View File

@@ -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();