Respect animation speedup config (#180)

This commit is contained in:
Jason Mitchell authored and GitHub committed 2024-01-11 08:05:26 -08:00
1 parent 93b03847df
commit 537eb06b66
1 file changed
+4 -2
@@ -93,9 +93,11 @@ public class ChunkRenderRebuildTask<T extends ChunkGraphicsState> extends ChunkR
}
private void handleRenderBlocksTextures(RenderBlocks rb, ChunkRenderData.Builder builder) {
if(!AngelicaConfig.speedupAnimations || !(rb instanceof ITexturesCache)) return;
for(IIcon texture : ((ITexturesCache)rb).getRenderedTextures()) {
if(texture instanceof TextureAtlasSprite) {
builder.addSprite((TextureAtlasSprite)texture);
if(texture instanceof TextureAtlasSprite textureAtlasSprite) {
builder.addSprite(textureAtlasSprite);
}
}
}