Fixed forestry mushrooms always having brown icons instead of brown and red.

This commit is contained in:
mezz committed 2014-09-05 00:29:54 -07:00
1 parent e6b1fa36f2
commit 75e6046dd7
1 file changed
+9
@@ -10,9 +10,12 @@
******************************************************************************/
package forestry.core.items;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.block.Block;
import net.minecraft.item.ItemBlock;
import net.minecraft.item.ItemStack;
import net.minecraft.util.IIcon;
public class ItemForestryBlock extends ItemBlock {
@@ -31,6 +34,12 @@ public class ItemForestryBlock extends ItemBlock {
return field_150939_a;
}
@SideOnly(Side.CLIENT)
@Override
public IIcon getIconFromDamage(int meta) {
return this.getBlock().getIcon(1, meta);
}
@Override
public String getUnlocalizedName(ItemStack itemstack) {
return getBlock().getUnlocalizedName() + "." + itemstack.getItemDamage();