CompFactory updates (#37559)
This commit is contained in:
@@ -13,7 +13,6 @@ namespace Content.Shared.Clothing.EntitySystems;
|
||||
|
||||
public abstract class SharedChameleonClothingSystem : EntitySystem
|
||||
{
|
||||
[Dependency] private readonly IComponentFactory _factory = default!;
|
||||
[Dependency] private readonly IPrototypeManager _proto = default!;
|
||||
[Dependency] private readonly ClothingSystem _clothingSystem = default!;
|
||||
[Dependency] private readonly ContrabandSystem _contraband = default!;
|
||||
@@ -66,7 +65,7 @@ public abstract class SharedChameleonClothingSystem : EntitySystem
|
||||
|
||||
// item sprite logic
|
||||
if (TryComp(uid, out ItemComponent? item) &&
|
||||
proto.TryGetComponent(out ItemComponent? otherItem, _factory))
|
||||
proto.TryGetComponent(out ItemComponent? otherItem, Factory))
|
||||
{
|
||||
_itemSystem.CopyVisuals(uid, otherItem, item);
|
||||
}
|
||||
@@ -126,7 +125,7 @@ public abstract class SharedChameleonClothingSystem : EntitySystem
|
||||
return false;
|
||||
|
||||
// check if it is marked as valid chameleon target
|
||||
if (!proto.TryGetComponent(out TagComponent? tag, _factory) || !_tag.HasTag(tag, WhitelistChameleonTag))
|
||||
if (!proto.TryGetComponent(out TagComponent? tag, Factory) || !_tag.HasTag(tag, WhitelistChameleonTag))
|
||||
return false;
|
||||
|
||||
if (requiredTag != null && !_tag.HasTag(tag, requiredTag))
|
||||
|
||||
Reference in New Issue
Block a user