Update CP14UniqueLootSystem.cs (#877)

This commit is contained in:
Ed
2025-02-10 20:45:53 +03:00
committed by GitHub
parent 72606bda02
commit c78bc23c06

View File

@@ -27,8 +27,14 @@ public sealed partial class CP14UniqueLootSystem : EntitySystem
{
var loot = GetNextUniqueLoot();
if (loot == null)
return;
if (!Deleted(ent))
Spawn(loot, Transform(ent).Coordinates);
SpawnAtPosition(loot, Transform(ent).Coordinates);
if (!TerminatingOrDeleted(ent) && Exists(ent))
QueueDel(ent);
}
private void OnRoundStart(RoundStartingEvent ev)