--- ../src-base/minecraft/net/minecraft/world/gen/structure/StructureMineshaftPieces.java
+++ ../src-work/minecraft/net/minecraft/world/gen/structure/StructureMineshaftPieces.java
@@ -19,6 +19,8 @@
 import net.minecraft.util.EnumFacing;
 import net.minecraft.util.WeightedRandomChestContent;
 import net.minecraft.world.World;
+import net.minecraftforge.common.ChestGenHooks;
+import static net.minecraftforge.common.ChestGenHooks.*;
 
 public class StructureMineshaftPieces
 {
@@ -33,6 +35,12 @@
         MapGenStructureIO.func_143031_a(StructureMineshaftPieces.Stairs.class, "MSStairs");
     }
 
+    static
+    {
+        ChestGenHooks.init(MINESHAFT_CORRIDOR, field_175893_a, 8, 8);
+        ChestGenHooks.addItem(MINESHAFT_CORRIDOR, new WeightedRandomChestContent(new net.minecraft.item.ItemStack(Items.field_151134_bR, 1, 0), 1, 1, 1));
+    }
+
     private static StructureComponent func_175892_a(List p_175892_0_, Random p_175892_1_, int p_175892_2_, int p_175892_3_, int p_175892_4_, EnumFacing p_175892_5_, int p_175892_6_)
     {
         int i1 = p_175892_1_.nextInt(100);
@@ -354,14 +362,15 @@
                         this.func_175809_a(p_74875_1_, p_74875_3_, p_74875_2_, 0.05F, 1, 2, k - 1, Blocks.field_150478_aa.func_176203_a(EnumFacing.UP.func_176745_a()));
                         this.func_175809_a(p_74875_1_, p_74875_3_, p_74875_2_, 0.05F, 1, 2, k + 1, Blocks.field_150478_aa.func_176203_a(EnumFacing.UP.func_176745_a()));
 
+                        ChestGenHooks info = ChestGenHooks.getInfo(MINESHAFT_CORRIDOR);
                         if (p_74875_2_.nextInt(100) == 0)
                         {
-                            this.func_180778_a(p_74875_1_, p_74875_3_, p_74875_2_, 2, 0, k - 1, WeightedRandomChestContent.func_177629_a(StructureMineshaftPieces.field_175893_a, new WeightedRandomChestContent[] {Items.field_151134_bR.func_92114_b(p_74875_2_)}), 3 + p_74875_2_.nextInt(4));
+                            this.func_180778_a(p_74875_1_, p_74875_3_, p_74875_2_, 2, 0, k - 1, info.getItems(p_74875_2_), info.getCount(p_74875_2_));
                         }
 
                         if (p_74875_2_.nextInt(100) == 0)
                         {
-                            this.func_180778_a(p_74875_1_, p_74875_3_, p_74875_2_, 0, 0, k + 1, WeightedRandomChestContent.func_177629_a(StructureMineshaftPieces.field_175893_a, new WeightedRandomChestContent[] {Items.field_151134_bR.func_92114_b(p_74875_2_)}), 3 + p_74875_2_.nextInt(4));
+                            this.func_180778_a(p_74875_1_, p_74875_3_, p_74875_2_, 0, 0, k + 1, info.getItems(p_74875_2_), info.getCount(p_74875_2_));
                         }
 
                         if (this.field_74956_b && !this.field_74957_c)
