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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user