EnumerableExtensions - Remove Enumerate<T> extension

This commit is contained in:
miku-666
2026-01-12 17:12:41 +01:00
parent a4371fae56
commit 61ac8fac4b
10 changed files with 42 additions and 49 deletions

View File

@@ -131,9 +131,10 @@ namespace PckStudio.Core.DLC
}
{
foreach ((int i, Animation.Frame frame) in texturePackage.GetBlockEntityBreakAnimation().GetFrames().Enumerate())
int i = 0;
foreach (Animation.Frame frame in texturePackage.GetBlockEntityBreakAnimation().GetFrames())
{
texturePck.AddTexture($"res/textures/destroy_stage_{i}.png", frame.Texture);
texturePck.AddTexture($"res/textures/destroy_stage_{i++}.png", frame.Texture);
}
}