Action container rejig (#20260)
Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
This commit is contained in:
@@ -59,11 +59,10 @@ public sealed partial class BorgSystem
|
||||
{
|
||||
var chassis = args.ChassisEnt;
|
||||
|
||||
var action = _actions.AddAction(chassis, ref component.ModuleSwapActionEntity, component.ModuleSwapActionId, uid);
|
||||
if (action != null)
|
||||
if (_actions.AddAction(chassis, ref component.ModuleSwapActionEntity, out var action, component.ModuleSwapActionId, uid))
|
||||
{
|
||||
action.EntityIcon = uid;
|
||||
Dirty(component.ModuleSwapActionEntity!.Value, action);
|
||||
Dirty(component.ModuleSwapActionEntity.Value, action);
|
||||
}
|
||||
|
||||
if (!TryComp(chassis, out BorgChassisComponent? chassisComp))
|
||||
|
||||
Reference in New Issue
Block a user