Cargo selling fixes (#17876)

- Prevent selling dead mobs (getting used as easy corpse disposal).
- Fix a broadcast event being raised O(n) times instead of O(1)
This commit is contained in:
metalgearsloth
2023-07-10 05:24:48 +10:00
committed by GitHub
parent ec58d2e716
commit 68b56878bc
3 changed files with 24 additions and 20 deletions

View File

@@ -188,7 +188,7 @@ namespace Content.Server.Cargo.Systems
if (!_protoMan.TryIndex<CargoProductPrototype>(args.CargoProductId, out var product))
{
_sawmill.Error($"Tried to add invalid cargo product {args.CargoProductId} as order!");
Log.Error($"Tried to add invalid cargo product {args.CargoProductId} as order!");
return;
}