mirror of
https://github.com/GTNewHorizons/AE2FluidCraft-Rework.git
synced 2026-11-17 02:45:08 +00:00
Revert fluid animation fix for Quartz Tank to mitigate FPS issue (#157)
This commit is contained in:
1 parent
4de0ee4b1a
commit
1f55def09f
2 files changed
+6
-16
No files matched your search
+5
-5
@@ -1,4 +1,4 @@
|
||||
//version: 1690907958
|
||||
//version: 1692122114
|
||||
/*
|
||||
DO NOT CHANGE THIS FILE!
|
||||
Also, you may replace this file at any time if there is an update available.
|
||||
@@ -562,9 +562,6 @@ repositories {
|
||||
maven {
|
||||
name 'Overmind forge repo mirror'
|
||||
url 'https://gregtech.overminddl1.com/'
|
||||
mavenContent {
|
||||
excludeGroup("net.minecraftforge") // missing the `universal` artefact
|
||||
}
|
||||
}
|
||||
maven {
|
||||
name = "GTNH Maven"
|
||||
@@ -1152,7 +1149,10 @@ tasks.named("processIdeaSettings").configure {
|
||||
|
||||
tasks.named("ideVirtualMainClasses").configure {
|
||||
// Make IntelliJ "Build project" build the mod jars
|
||||
dependsOn("jar", "reobfJar", "spotlessCheck")
|
||||
dependsOn("jar", "reobfJar")
|
||||
if (!disableSpotless) {
|
||||
dependsOn("spotlessCheck")
|
||||
}
|
||||
}
|
||||
|
||||
// workaround variable hiding in pom processing
|
||||
|
||||
@@ -3,11 +3,8 @@ package com.glodblock.github.client.render.tank;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import javax.annotation.Nonnull;
|
||||
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.renderer.GLAllocation;
|
||||
import net.minecraft.client.renderer.texture.TextureAtlasSprite;
|
||||
import net.minecraft.client.renderer.texture.TextureMap;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.util.IIcon;
|
||||
@@ -78,7 +75,7 @@ public class FluidTankRenderer {
|
||||
return null;
|
||||
}
|
||||
Map<Fluid, int[]> cache = flowing ? flowingRenderCache : stillRenderCache;
|
||||
int[] diplayLists = getCachedData(fluid, cache);
|
||||
int[] diplayLists = cache.get(fluid);
|
||||
if (diplayLists != null) {
|
||||
return diplayLists;
|
||||
}
|
||||
@@ -122,11 +119,4 @@ public class FluidTankRenderer {
|
||||
return diplayLists;
|
||||
}
|
||||
|
||||
private static int[] getCachedData(@Nonnull Fluid fluid, Map<Fluid, int[]> cache) {
|
||||
IIcon icon = fluid.getIcon();
|
||||
if (icon instanceof TextureAtlasSprite sprite && sprite.hasAnimationMetadata()) {
|
||||
return null;
|
||||
}
|
||||
return cache.get(fluid);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user