Skip to content

Commit

Permalink
render iron pickaxe in lieu of missing items fixes #
Browse files Browse the repository at this point in the history
  • Loading branch information
progwml6 committed Sep 11, 2014
1 parent c8cd17f commit 72fdb8c
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/mantle/client/RenderItemCopy.java
Expand Up @@ -12,6 +12,7 @@
import net.minecraft.client.renderer.texture.TextureMap;
import net.minecraft.entity.Entity;
import net.minecraft.entity.item.EntityItem;
import net.minecraft.init.Items;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.util.IIcon;
Expand Down Expand Up @@ -345,7 +346,16 @@ public void renderItemIntoGUI (SmallFontRenderer par1FontRenderer, TextureManage
public void renderItemIntoGUI (SmallFontRenderer par1FontRenderer, TextureManager par2TextureManager, ItemStack par3ItemStack, int par4, int par5, boolean renderEffect)
{
Item k = par3ItemStack.getItem();
int l = par3ItemStack.getItemDamage();
int l;
if(k == null)
{
k = Items.iron_pickaxe;
l = 0;
}
else
{
l = par3ItemStack.getItemDamage();
}
Object object = par3ItemStack.getItem() == null ? null : par3ItemStack.getIconIndex();
float f;
int i1;
Expand Down

0 comments on commit 72fdb8c

Please sign in to comment.