Fixed wild plants dropping the wrong seeds.

This commit is contained in:
Ellpeck 2016-01-11 18:55:39 +01:00
parent b8b94b91f1
commit d3950d257c

View file

@ -48,11 +48,6 @@ public class BlockWildPlant extends BlockBushBase{
this.setStepSound(soundTypeGrass);
}
@Override
public int damageDropped(IBlockState state){
return this.getMetaFromState(state);
}
@Override
protected PropertyInteger getMetaProperty(){
return META;
@ -112,7 +107,7 @@ public class BlockWildPlant extends BlockBushBase{
@Override
public List<ItemStack> getDrops(IBlockAccess world, BlockPos pos, IBlockState state, int fortune){
int metadata = PosUtil.getMetadata(pos, world);
int metadata = state.getBlock().getMetaFromState(state);
return metadata >= allWildPlants.length ? null : allWildPlants[metadata].wildVersionOf.getDrops(world, pos, allWildPlants[metadata].wildVersionOf.getStateFromMeta(7), fortune);
}