mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-26 14:52:58 +00:00
Make the tank-type renderers reset their DisplayLists on texture reload.
This will prevent missing-texture/wrong-texture weirdness when changing texturepacks in-world. Also noticed that two old render classes from my first rewrite of transmitter rendering are now unused, so deleted them.
This commit is contained in:
1 parent
99a5702de9
commit
c21404dd2d
7 files changed
+35
-274
No files matched your search
@@ -7,6 +7,7 @@ import mekanism.api.Coord4D;
|
||||
import mekanism.client.render.MekanismRenderer;
|
||||
import mekanism.client.render.MekanismRenderer.DisplayInteger;
|
||||
import mekanism.client.render.MekanismRenderer.Model3D;
|
||||
import mekanism.common.Mekanism;
|
||||
import mekanism.common.content.tank.TankUpdateProtocol;
|
||||
import mekanism.common.content.tank.SynchronizedTankData.ValveData;
|
||||
import mekanism.common.tile.TileEntityDynamicTank;
|
||||
@@ -358,4 +359,10 @@ public class RenderDynamicTank extends TileEntitySpecialRenderer
|
||||
return code;
|
||||
}
|
||||
}
|
||||
|
||||
public static void resetDisplayInts()
|
||||
{
|
||||
cachedCenterFluids.clear();
|
||||
cachedValveFluids.clear();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user