Tweaked some stuff with the currently unused berry bushes

This commit is contained in:
Matt Caughey 2013-05-16 09:48:45 -04:00
parent 2715e2cff1
commit f8d378f4bc
3 changed files with 3 additions and 1 deletions

View file

@ -273,6 +273,7 @@ public class BOPBlocks {
LanguageRegistry.addName(new ItemStack(Blocks.leaves1.get(),1,4), "Dying Leaves");
LanguageRegistry.addName(new ItemStack(Blocks.foliage.get(),1,1), "Short Grass");
LanguageRegistry.addName(Blocks.leavesFruit.get(), "Apple Leaves");
LanguageRegistry.addName(new ItemStack(Blocks.foliage.get(),1,8), "Berry Bush");
LanguageRegistry.addName(new ItemStack(Blocks.foliage.get(),1,7), "Poison Ivy");
LanguageRegistry.addName(new ItemStack(Blocks.foliage.get(),1,5), "Sprout");
LanguageRegistry.addName(new ItemStack(Blocks.foliage.get(),1,4), "Bush");

View file

@ -38,12 +38,13 @@ public class ItemBOPFoliage extends ItemColored
textures[i] = iconRegister.registerIcon("BiomesOPlenty:" + foliageTypes[i]);
textures[3] = iconRegister.registerIcon("BiomesOPlenty:item_highgrass");
textures[8] = iconRegister.registerIcon("BiomesOPlenty:item_berrybush");
}
@SideOnly(Side.CLIENT)
public int getColorFromItemStack(ItemStack itemStack, int par2)
{
if (itemStack.getItemDamage() == 3)
if (itemStack.getItemDamage() == 3 || itemStack.getItemDamage() == 8)
return 16777215;
else
return Blocks.foliage.get().getRenderColor(itemStack.getItemDamage());

Binary file not shown.

After

Width:  |  Height:  |  Size: 636 B