Update trivial components to use auto comp states (#20539)

This commit is contained in:
DrSmugleaf
2023-09-28 16:20:29 -07:00
committed by GitHub
parent 14cfe44ece
commit a44fa86b68
158 changed files with 806 additions and 2866 deletions

View File

@@ -38,8 +38,8 @@ public abstract class SharedChameleonClothingSystem : EntitySystem
// This 100% makes sure that server and client have exactly same data.
protected void UpdateVisuals(EntityUid uid, ChameleonClothingComponent component)
{
if (string.IsNullOrEmpty(component.SelectedId) ||
!_proto.TryIndex(component.SelectedId, out EntityPrototype? proto))
if (string.IsNullOrEmpty(component.Default) ||
!_proto.TryIndex(component.Default, out EntityPrototype? proto))
return;
// world sprite icon