Should fix NPE on older ISoundHandlers EXA: http://minecraftforge.net/forum/index.php/topic,759.html
This commit is contained in:
parent
a628765419
commit
9083be320b
1 changed files with 2 additions and 1 deletions
|
@ -13,6 +13,7 @@ import net.minecraft.src.Item;
|
||||||
import net.minecraft.src.ItemStack;
|
import net.minecraft.src.ItemStack;
|
||||||
import net.minecraft.src.ModLoader;
|
import net.minecraft.src.ModLoader;
|
||||||
import net.minecraft.src.RenderBlocks;
|
import net.minecraft.src.RenderBlocks;
|
||||||
|
import net.minecraft.src.World;
|
||||||
import net.minecraft.src.forge.IItemRenderer.ItemRenderType;
|
import net.minecraft.src.forge.IItemRenderer.ItemRenderType;
|
||||||
|
|
||||||
public class MinecraftForgeClient
|
public class MinecraftForgeClient
|
||||||
|
@ -74,7 +75,7 @@ public class MinecraftForgeClient
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
if (MinecraftForgeClient.class.getPackage().getName().equals("net.minecraft.src.forge"))
|
if (World.class.getName().contains("World"))
|
||||||
{
|
{
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue