mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-16 18:45:09 +00:00
Fix textures not applying properly
This commit is contained in:
1 parent
789a4a3659
commit
12323e233f
2 files changed
+7
-4
No files matched your search
@@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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()
|
||||||
|
|||||||
Reference in new issue
Block a user