wt nach abladen respawnen

This commit is contained in:
hydrant
2021-04-11 05:43:43 +02:00
parent 5d4d1165de
commit c6998b4d13
2 changed files with 7 additions and 5 deletions

View File

@@ -893,14 +893,15 @@ namespace ReallifeGamemode.Server.Managers
public static ServerVehicle GetServerVehicleFromVehicle(Vehicle veh, DatabaseContext dbContext = null)
{
if (veh == null)
{
return null;
}
dbContext = dbContext ?? new DatabaseContext();
foreach (KeyValuePair<int, NetHandle> pair in _serverVehicles)
{
if (veh == null)
{
continue;
}
if (pair.Value == veh.Handle)
{