mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-18 11:29:15 +00:00
28 lines
899 B
Diff
28 lines
899 B
Diff
--- ../src_base/minecraft/net/minecraft/client/renderer/RenderEngine.java
|
|
+++ ../src_work/minecraft/net/minecraft/client/renderer/RenderEngine.java
|
|
@@ -29,6 +29,8 @@
|
|
import net.minecraft.util.IntHashMap;
|
|
import org.lwjgl.opengl.GL11;
|
|
|
|
+import net.minecraftforge.client.ForgeHooksClient;
|
|
+
|
|
@SideOnly(Side.CLIENT)
|
|
public class RenderEngine
|
|
{
|
|
@@ -172,6 +174,7 @@
|
|
|
|
try
|
|
{
|
|
+ ForgeHooksClient.onTextureLoadPre(par1Str);
|
|
this.singleIntBuffer.clear();
|
|
GLAllocation.generateTextureNames(this.singleIntBuffer);
|
|
int i = this.singleIntBuffer.get(0);
|
|
@@ -215,6 +218,7 @@
|
|
}
|
|
|
|
this.textureMap.put(par1Str, Integer.valueOf(i));
|
|
+ ForgeHooksClient.onTextureLoad(par1Str, itexturepack);
|
|
return i;
|
|
}
|
|
catch (Exception exception)
|