Replace EntityUid parsing with NetEntity (#23474)
* Replace EntityUid parsing with NetEntity * fix * Other changes required for arch * And anothher
This commit is contained in:
@@ -10,10 +10,9 @@ namespace Content.Server.Administration.UI
|
||||
public sealed class SetOutfitEui : BaseEui
|
||||
{
|
||||
[Dependency] private readonly IAdminManager _adminManager = default!;
|
||||
[Dependency] private readonly IEntityManager _entManager = default!;
|
||||
private readonly EntityUid _target;
|
||||
private readonly NetEntity _target;
|
||||
|
||||
public SetOutfitEui(EntityUid entity)
|
||||
public SetOutfitEui(NetEntity entity)
|
||||
{
|
||||
_target = entity;
|
||||
IoCManager.InjectDependencies(this);
|
||||
@@ -31,7 +30,7 @@ namespace Content.Server.Administration.UI
|
||||
{
|
||||
return new SetOutfitEuiState
|
||||
{
|
||||
TargetNetEntity = _entManager.GetNetEntity(_target)
|
||||
TargetNetEntity = _target,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user