Added a texture preloader to avoid render glitches on the first render.

This commit is contained in:
Eloraam 2011-08-05 11:58:14 +00:00
parent f54eecb455
commit 6accd6dfee

View file

@ -23,4 +23,9 @@ public class MinecraftForgeClient {
public static void unbindTexture() {
ForgeHooksClient.unbindTexture();
}
public static void preloadTexture(String texture) {
ModLoader.getMinecraftInstance().renderEngine
.getTexture(texture);
}
}