--- ../src_base/minecraft_server/net/minecraft/src/BlockTallGrass.java 0000-00-00 00:00:00.000000000 -0000 +++ ../src_work/minecraft_server/net/minecraft/src/BlockTallGrass.java 0000-00-00 00:00:00.000000000 -0000 @@ -4,7 +4,10 @@ package net.minecraft.src; +import net.minecraft.src.forge.ForgeHooks; + import java.util.Random; +import java.util.ArrayList; // Referenced classes of package net.minecraft.src: // BlockFlower, Item, World, EntityPlayer, @@ -41,13 +44,24 @@ public int idDropped(int i, Random random, int j) { - if(random.nextInt(8) == 0) - { - return Item.seeds.shiftedIndex; - } else - { return -1; - } + } + + @Override + public ArrayList getBlockDropped(World world, int i, int j, int k, int md, int fortune) + { + ArrayList tr = new ArrayList(); + if (world.rand.nextInt(8) != 0) + { + return tr; + } + + ItemStack ist = ForgeHooks.getGrassSeed(world); + if (ist != null) + { + tr.add(ist); + } + return tr; } public int quantityDroppedWithBonus(int i, Random random)