Fix textures not applying properly

This commit is contained in:
Christian 2012-08-22 17:27:06 -04:00
parent e713f7b1c2
commit 4d44836bb3
2 changed files with 21 additions and 18 deletions

View File

@ -22,6 +22,7 @@ import net.minecraft.src.RenderEngine;
import net.minecraft.src.TextureFX; import net.minecraft.src.TextureFX;
import net.minecraft.src.TexturePackBase; import net.minecraft.src.TexturePackBase;
import cpw.mods.fml.common.FMLCommonHandler; import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.common.FMLLog;
public class FMLTextureFX extends TextureFX implements ITextureFX public class FMLTextureFX extends TextureFX implements ITextureFX
{ {
@ -30,7 +31,7 @@ public class FMLTextureFX extends TextureFX implements ITextureFX
public int tileSizeMask = 15; public int tileSizeMask = 15;
public int tileSizeSquareMask = 255; public int tileSizeSquareMask = 255;
public boolean errored = false; public boolean errored = false;
protected Logger log = FMLCommonHandler.instance().getFMLLogger(); protected Logger log = FMLLog.getLogger();
public FMLTextureFX(int icon) public FMLTextureFX(int icon)
{ {

View File

@ -81,7 +81,8 @@ public class ModTextureStatic extends FMLTextureFX
update(); update();
} }
public void func_783_a() @Override
public void func_76846_a()
{ {
if (oldanaglyph != field_76851_c) if (oldanaglyph != field_76851_c)
{ {
@ -97,9 +98,10 @@ public class ModTextureStatic extends FMLTextureFX
} }
} }
public void func_782_a(RenderEngine p_782_1_) @Override
public void func_76845_a(RenderEngine p_76845_1_)
{ {
GL11.glBindTexture(GL_TEXTURE_2D, p_782_1_.func_78341_b(targetTex)); GL11.glBindTexture(GL_TEXTURE_2D, p_76845_1_.func_78341_b(targetTex));
} }
public void update() public void update()