Content update for NetEntities (#18935)
This commit is contained in:
@@ -67,12 +67,12 @@ namespace Content.Client.Actions
|
||||
return;
|
||||
|
||||
component.Actions.Clear();
|
||||
component.Actions.UnionWith(state.Actions);
|
||||
component.Actions.UnionWith(GetEntitySet(state.Actions));
|
||||
|
||||
_actionHoldersQueue.Enqueue(uid);
|
||||
}
|
||||
|
||||
protected override void AddActionInternal(EntityUid holderId, EntityUid actionId, IContainer container, ActionsComponent holder)
|
||||
protected override void AddActionInternal(EntityUid holderId, EntityUid actionId, BaseContainer container, ActionsComponent holder)
|
||||
{
|
||||
// Sometimes the client receives actions from the server, before predicting that newly added components will add
|
||||
// their own shared actions. Just in case those systems ever decided to directly access action properties (e.g.,
|
||||
@@ -87,7 +87,7 @@ namespace Content.Client.Actions
|
||||
}
|
||||
}
|
||||
|
||||
public override void AddAction(EntityUid holderId, EntityUid actionId, EntityUid? provider, ActionsComponent? holder = null, BaseActionComponent? action = null, bool dirty = true, IContainer? actionContainer = null)
|
||||
public override void AddAction(EntityUid holderId, EntityUid actionId, EntityUid? provider, ActionsComponent? holder = null, BaseActionComponent? action = null, bool dirty = true, BaseContainer? actionContainer = null)
|
||||
{
|
||||
if (!Resolve(holderId, ref holder, false))
|
||||
return;
|
||||
@@ -195,7 +195,7 @@ namespace Content.Client.Actions
|
||||
}
|
||||
else
|
||||
{
|
||||
var request = new RequestPerformActionEvent(actionId);
|
||||
var request = new RequestPerformActionEvent(GetNetEntity(actionId));
|
||||
EntityManager.RaisePredictiveEvent(request);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user