Skip to content

Commit

Permalink
Cooked food no longer appears raw when dropped on the ground as an en…
Browse files Browse the repository at this point in the history
…tity.
  • Loading branch information
Kittychanley committed Sep 4, 2015
1 parent 3cf7d30 commit 9e9a10c
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/Common/com/bioxx/tfc/Food/ItemFoodTFC.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@

import net.minecraftforge.client.MinecraftForgeClient;

import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;

import com.bioxx.tfc.Reference;
import com.bioxx.tfc.TerraFirmaCraft;
import com.bioxx.tfc.Core.TFCTabs;
Expand Down Expand Up @@ -132,6 +135,23 @@ public IIcon getIcon(ItemStack stack, int pass)
return this.itemIcon;
}

@Override
@SideOnly(Side.CLIENT)
public boolean requiresMultipleRenderPasses()
{
return true;
}

/*
* requiresMultipleRenderPasses is true so the dropped item uses the
* correct icon but we don't actually need the extra render passes.
*/
@Override
public int getRenderPasses(int metadata)
{
return 1;
}

/*@Override
@SideOnly(Side.CLIENT)
public int getColorFromItemStack(ItemStack is, int par2)
Expand Down

0 comments on commit 9e9a10c

Please sign in to comment.