mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-23 21:49:46 +00:00
70 lines
2.5 KiB
Diff
70 lines
2.5 KiB
Diff
--- ../src-base/minecraft/net/minecraft/client/renderer/RenderEngine.java
|
|
+++ ../src-work/minecraft/net/minecraft/client/renderer/RenderEngine.java
|
|
@@ -1,8 +1,11 @@
|
|
package net.minecraft.client.renderer;
|
|
|
|
+import cpw.mods.fml.client.TextureFXManager;
|
|
+import cpw.mods.fml.common.FMLLog;
|
|
import cpw.mods.fml.relauncher.Side;
|
|
import cpw.mods.fml.relauncher.SideOnly;
|
|
import java.awt.Color;
|
|
+import java.awt.Dimension;
|
|
import java.awt.Graphics;
|
|
import java.awt.image.BufferedImage;
|
|
import java.awt.image.ImageObserver;
|
|
@@ -13,6 +16,9 @@
|
|
import java.util.HashMap;
|
|
import java.util.Iterator;
|
|
import java.util.Map;
|
|
+import java.util.logging.Level;
|
|
+import java.util.logging.Logger;
|
|
+
|
|
import javax.imageio.ImageIO;
|
|
import net.minecraft.client.settings.GameSettings;
|
|
import net.minecraft.client.texturepacks.ITexturePack;
|
|
@@ -38,6 +44,8 @@
|
|
private final TextureMap field_94155_m;
|
|
private int field_94153_n;
|
|
|
|
+ public static Logger log = FMLLog.getLogger();
|
|
+
|
|
public RenderEngine(TexturePackList p_i3192_1_, GameSettings p_i3192_2_)
|
|
{
|
|
this.field_78366_k = p_i3192_1_;
|
|
@@ -116,8 +124,9 @@
|
|
this.field_78359_d.put(p_78346_1_, aint1);
|
|
return aint1;
|
|
}
|
|
- catch (IOException ioexception)
|
|
- {
|
|
+ catch (Exception ioexception)
|
|
+ {
|
|
+ log.log(Level.INFO, String.format("An error occured reading texture file %s (getTexture)", p_78346_1_), ioexception);
|
|
ioexception.printStackTrace();
|
|
int[] aint2 = this.func_78348_b(this.field_78364_l);
|
|
this.field_78359_d.put(p_78346_1_, aint2);
|
|
@@ -504,8 +513,9 @@
|
|
this.field_78361_b = false;
|
|
this.field_78363_a = false;
|
|
}
|
|
- catch (IOException ioexception)
|
|
- {
|
|
+ catch (Exception ioexception)
|
|
+ {
|
|
+ log.log(Level.INFO,String.format("An error occured reading texture file %s (refreshTexture)", s), ioexception);
|
|
ioexception.printStackTrace();
|
|
}
|
|
}
|
|
@@ -541,8 +551,9 @@
|
|
this.field_78361_b = false;
|
|
this.field_78363_a = false;
|
|
}
|
|
- catch (IOException ioexception1)
|
|
- {
|
|
+ catch (Exception ioexception1)
|
|
+ {
|
|
+ log.log(Level.INFO,String.format("An error occured reading texture file data %s (refreshTexture)", s), ioexception1);
|
|
ioexception1.printStackTrace();
|
|
}
|
|
}
|