mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-18 11:29:15 +00:00
MinecraftForge/FML@03fb1879d7 Fix obf error when right clicking a Empty Map. MinecraftForge/FML@6bb9b8b953 Clean up FMLEventChannel. Closes #367. MinecraftForge/FML@b7b3450dcd Update MCP mapping snapshot to latest crowdsourced names. MinecraftForge/FML@8c9e8b5270 Fix isRemote, this is integral to so many parts of the code, everyone knows it by this name, People should not change it.
27 lines
877 B
Diff
27 lines
877 B
Diff
--- ../src-base/minecraft/net/minecraft/client/renderer/OpenGlHelper.java
|
|
+++ ../src-work/minecraft/net/minecraft/client/renderer/OpenGlHelper.java
|
|
@@ -27,6 +27,10 @@
|
|
public static boolean shadersSupported;
|
|
private static final String __OBFID = "CL_00001179";
|
|
|
|
+ /* Stores the last values sent into setLightmapTextureCoords */
|
|
+ public static float lastBrightnessX = 0.0f;
|
|
+ public static float lastBrightnessY = 0.0f;
|
|
+
|
|
// JAVADOC METHOD $$ func_77474_a
|
|
public static void initializeTextures()
|
|
{
|
|
@@ -89,6 +93,12 @@
|
|
{
|
|
GL13.glMultiTexCoord2f(par0, par1, par2);
|
|
}
|
|
+
|
|
+ if (par0 == lightmapTexUnit)
|
|
+ {
|
|
+ lastBrightnessX = par1;
|
|
+ lastBrightnessY = par2;
|
|
+ }
|
|
}
|
|
|
|
public static void glBlendFunc(int p_148821_0_, int p_148821_1_, int p_148821_2_, int p_148821_3_)
|