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:
Ben Spiers committed 2014-09-02 18:44:31 +01:00
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();
}
}