mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-13 16:54:22 +00:00
Added a texture preloader to avoid render glitches on the first render.
This commit is contained in:
1 parent
f54eecb455
commit
6accd6dfee
1 file changed
+5
@@ -23,4 +23,9 @@ public class MinecraftForgeClient {
|
||||
public static void unbindTexture() {
|
||||
ForgeHooksClient.unbindTexture();
|
||||
}
|
||||
|
||||
public static void preloadTexture(String texture) {
|
||||
ModLoader.getMinecraftInstance().renderEngine
|
||||
.getTexture(texture);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user