Cleanup 2 SpriteComponent.GetPrototypeTextures uses (#38263)

Cleanup 2 SpriteComponent.GetPrototypeTextures uses
This commit is contained in:
Tayrtahn
2025-06-11 14:15:47 -04:00
committed by GitHub
parent 00789525f8
commit 27cb97a17c
2 changed files with 3 additions and 2 deletions

View File

@@ -16,6 +16,7 @@ namespace Content.IntegrationTests.Tests
var client = pair.Client;
var prototypeManager = client.ResolveDependency<IPrototypeManager>();
var resourceCache = client.ResolveDependency<IResourceCache>();
var spriteSys = client.System<SpriteSystem>();
await client.WaitAssertion(() =>
{
@@ -26,7 +27,7 @@ namespace Content.IntegrationTests.Tests
Assert.DoesNotThrow(() =>
{
var _ = SpriteComponent.GetPrototypeTextures(proto, resourceCache).ToList();
var _ = spriteSys.GetPrototypeTextures(proto).ToList();
}, "Prototype {0} threw an exception when getting its textures.",
proto.ID);
}