 -            int i = bufferedimage.getHeight();
 -            int j = bufferedimage.getWidth();
 -            String s1 = this.func_98146_d(par1Str);
-+            InputStream textureInputStream = itexturepack.getResourceAsStream("/" + textureFile);
 +            BufferedImage bufferedimage = null;
 +            int i = 0;
 +            int j = 0;
-+            if (textureInputStream!=null)
++            FileNotFoundException fnfe = null;
++            try
 +            {
-+                bufferedimage = ImageIO.read(textureInputStream);
++                bufferedimage = ImageIO.read(itexturepack.getResourceAsStream("/" + textureFile));
 +                i = bufferedimage.getHeight();
 +                j = bufferedimage.getWidth();
++            }
++            catch (FileNotFoundException e)
++            {
++                fnfe = e;
 +            }
 +            String s1 = textureName;
  

+            {
+                ;
+            }
+            else if (textureInputStream == null)
+            {
+                throw new FileNotFoundException();
+            }
+            else if (this.func_98147_a(par1Str, itexturepack))
             {

--- ../src_base/minecraft/net/minecraft/client/renderer/texture/TextureManager.java
+++ ../src_work/minecraft/net/minecraft/client/renderer/texture/TextureManager.java
@@ -66,17 +66,42 @@
 
     public List func_94266_e(String par1Str)
     {
