mehr inventar logs
This commit is contained in:
@@ -1154,7 +1154,14 @@ namespace ReallifeGamemode.Server.Managers
|
||||
Vehicle newVeh = sV.Spawn(vehicle);
|
||||
newVeh.Repair();
|
||||
}
|
||||
InventoryManager.RemoveAllItemsfromVehicleInventory(vehicle);
|
||||
|
||||
var items = InventoryManager.GetVehicleItems(vehicle);
|
||||
if (items.Any())
|
||||
{
|
||||
string itemsStr = string.Join(", ", items.Select(i => $"{i.ItemId} (amount: {i.Amount})"));
|
||||
logger.LogInformation("Vehicle {0} died and lost the items: {1}", sV.Id, itemsStr);
|
||||
InventoryManager.RemoveAllItemsfromVehicleInventory(vehicle);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user