mirror of
https://github.com/GTNewHorizons/Angelica.git
synced 2026-11-19 03:49:22 +00:00
Respect animation speedup config (#180)
This commit is contained in:
1 parent
93b03847df
commit
537eb06b66
1 file changed
+4
-2
+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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user